Layer States - apply to multiple drawings

Layer States - apply to multiple drawings

1wildwes
Collaborator Collaborator
468 Views
4 Replies
Message 1 of 5

Layer States - apply to multiple drawings

1wildwes
Collaborator
Collaborator

Is there a way or a lisp to apply Layer States to multiple drawings without opening each drawing?

0 Likes
Accepted solutions (1)
469 Views
4 Replies
Replies (4)
Message 2 of 5

VincentSheehan
Advisor
Advisor
Accepted 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

 

Vincent Sheehan

Sr. Civil Designer
Poly In 3D Blog

0 Likes
Message 3 of 5

1wildwes
Collaborator
Collaborator

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.

0 Likes
Message 4 of 5

VincentSheehan
Advisor
Advisor

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 

Vincent Sheehan

Sr. Civil Designer
Poly In 3D Blog

0 Likes
Message 5 of 5

Sea-Haven
Mentor
Mentor

Accoreconsole can be used on multiple dwg's as it changes a dwg without opening it. Others will jump in with links.

0 Likes