Coming from AutoCAD 2010, I've discovered that AutoCAD 2012 processes S::STARTUP differently.
My VLISP/ActiveX batch plot utility uses 'vla-Open' and 'vla-Close' to open and close each drawing. In between these events, a LISP plot routine, residing in a startup file, is auto run once drawing opens, plotting the drawing.
In AutoCAD 2010, the LISP plot routine was in S::STARTUP function and worked fine. In 2012, I cannot put the LISP plot routine in the S::STARTUP function because S::STARTUP is only executed upon the opened drawing becoming the active document (manually or programatically). Problem is, making the opened drawing active results in loss of control of batch process.
To work in 2012, I have a call to LISP plot routine at the end of the <cui>.MNL file (but not in S::STARTUP). It works, but frequently causes Fatal Error - I assume due to processes stepping on each other. I'm playing with inserting DELAY command(s), hoping to find the right combination to prevent the Fatal Errors.
Can anyone offer other suggestions?