I have a lisp routine that I would like to run on multiple drawings. In the past I have written scripts to modify my drawings and used Hurricane to run on several drawings. I am unaware of how to automate this process using lisps though. Any ideas?
|
I have a lisp routine that I would like to run on multiple drawings. In the past I have written scripts to modify my drawings and used Hurricane to run on several drawings. I am unaware of how to automate this process using lisps though. Any ideas?
For setting up a batch program to open up several drawings and run a lisp routine, check out this thread. It uses a batch, script and lisp routines.
I think this will help.
That will run the lisp routine for every drawing you open, if this is what you wanted. Otherwise tedg's post shows the easiest method to select DWG & run some commands on them.
BTW, don't use the ACADDOC200#.LSP file. Rather create a ACADDOC.LSP file in a support path. Officially this is where you should place custom code to be loaded for each DWG. The A...200#.LSP is intended only for AutoDesk programmers - so you never know what will happen later in an update / upgrade.