Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there a way or a lisp to apply Layer States to multiple drawings without opening each drawing?
Solved! Go to Solution.
Is there a way or a lisp to apply Layer States to multiple drawings without opening each drawing?
Solved! Go to Solution.
You can write a script. Create a Layer State in a file. Export the state to a folder location. You can add qsave and so on at the end of the script. Let me know if you have any questions.
-LAYER
STATE
IMPORT
c:\Temp\LAYERSTATE.las
RESTORE
LAYERSTATE
I would have to open each drawing to run that, right? I'm looking to run it on several drawings at once without manually opening all the drawings.
You can add the files and paths to the script. Depends on how may files you would like to open, that could take a few minutes to add to the script. I usually use Excel to organize the file paths and names then incorporate that into the script. I also use Civil 3D. It came with a Batch Save Utility so I can run the script on all the files in a folder. There may be a Lisp out there somewhere.
This may also help.
https://www.linkedin.com/pulse/autocad-run-scripts-multiple-files-sean-arrowsmith-m3f2e