CompuServe Thread

AutoLISP/SCript HELP

1 messages in this thread
#33690From: Tony Tanzillo [LISP TM]Feb 19, 1992 10:29 AM
Daniel – Calling (command) with no arguments is equivalent to issuing ^C from the keyboard, but as you might have noticed, that also terminates execution of a running script file. My suggestion is to only use the script file to get in and out of the editing session, and use the AutoLISP (S::STARTUP) function to do the work in the drawing editor. You can create a SCRIPT file that will get you from one drawing to the next, and invoke it at the END of your AutoLISP procedure, after it has finished processing each drawing. You can also have your AutoLISP program generate the script file itself. One thing you should be careful about is editing a large number of drawings in a single ACAD.EXE session, without exiting all the way back to DOS, since the Phar Lap swap file will not be purged until you exit to DOS. If you are going to process a large number of drawings, then I would suggest that you do it on a one-session/drawing basis. This can be accomplished with the MS-DOS FOR/IN/DO command, and all you need is a one-line script file that issues a "0" at the main menu to return back to DOS after editing each drawing. That script file can be invoked by your AutoLISP procedure as well. -TonyT.