Display full version of the post: Automation

mfkozlow
18.08.2014, 19:41
Hello everyone!I was wondering if there exists a lisp that can open files and run other lisps on these files. For example, I would like to be able to type a command and for that command to go and open another drawing and run another lisp on it. So to clear things up... I only want to type the command at the first file, but I would like it to open the second file and run other lisps within the second file (possibly even open more files). The reason I want this done is because I want zero user interaction. Let me know of any ideas/suggestions you may have. Thanks!

John Connor
18.08.2014, 23:18
Maybe try a script?  I think scripts can call lisp routines.  They certainly can be used to batch process a folder full of drawings.

mfkozlow
19.08.2014, 14:51
I tried the following script: (the OPEN_003 is a lisp that opens a drawing file that ends with "E003" & the GET_ATT is a lisp to retrieve a specific attribute from a block)[CODE]FILEDIA 0ZOOMEGET_ATTOPEN_003ZOOMEGET_ATTQUIT[/CODE]When the above is ran, everything is done to the file that is opened initially. What I want is for the script beneath "OPEN_003" to run on the newly opened drawing. Is there a way to do this?