Coming from AutoCAD 2010, I've discovered that 2012 processes S:TARTUP differently - and not for the better IMO.
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:TARTUP function (designed for just this kind of thing). In 2012, I cannot put the LISP plot routine in the S:TARTUP function because S:TARTUP 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 LISP plot routine at the end of the <cui>.MNL file (not in S:TARTUP). 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?
Still wondering if anyone can suggest how in AutoCAD 2012 I can execute a PLOT of each drawing in a list of drawings where each drawing is opened with 'vla-Open' and closed with 'vla-Close'?
To my knowledge commands can only be employed while in S:TARTUP.
Possibly look into appending the existing S:TARTUP with your PLOT command inside?
(I don't have my R12 LISP book handy to guide you)
Thanks, but I've appended STARTUP, defined plot function using defun-q, etc., put S:TARTUP in acaddoc.lsp, in <cui>.mnl, nothing has worked to make it run without having opened file become active.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register