So, a lot of years ago, someone decided on a particular color for a layer and it became the company standard. Today, and many, Many, MANY standard drawings later, it was determined that that layer's color should change. Does anyone have an automated way to change and existing layer's color on all the drawings in a directory and that directory's sub-directories?
Or if you have any other suggestions, they are welcome too.
Solved! Go to Solution.
Solved! by mathewk. See the answer in context.
Add a function in STARTUP of acad.lsp to change the certain layer color.
Then everytime you open a drawing, the layer color will be changed automatically.
If you were to consider third party software, ToolPac contains a tool that will optionally rename layers in multiple drawings, also set options such as color, linetype, etc. The drawings are opened as a database (not in the editor) so they process very quickly.
All the suggestions were workable and i especially like the STARTUP suggestion by 3wood but i really want the existing drawings to be updated. Although the suggestion by Terry to look at ToolPac had me reaching for my wallet, i am always looking for a $0 solution.
Anyway, i have been considering ScriptPro for other purposes for a while so i finally downloaded it and wrote the script and it works just fine for me. I have one questions though, is there anyway to use a script to insert "custom" properties into a drawing (ref attached)? The command "DWGPROPS" seems to be only a dialog driven command.
Thanks for the final push to ScriptPro.
And thanks to Terry and 3wood for their suggestions also.
You can access the custom properties with lisp, so you could put some line of lisp code in your script. Or get a lisp program that sets your properties then use a script to open each drawing and load the lisp.
There are some threads in the customization forum that discuss setting properties with lisp.
Thanks for you input. I wasn't sure if i could run list from inside the script so i tried this line and it works.
I think i got all i need now so i'm off to the network to do some mass editing.
Thanks to all and once again, this ng has been helpful to the nth degree.