PDA

View Full Version : Layer Manager, the Plot Icon and a Script...


jlord.108497
2008-02-14, 06:54 PM
Does anyone know of a script, or the syntax, that I could throw in a script file to change a Layer from "No Plot" to "Plot"? My issue is someone decided to set a certain layer to "No Plot" and I really don't want to go through 50 sheets to set that layer to "Plot".

Your help is much appreciated!

Thanks,
lordj

.T.
2008-02-14, 07:33 PM
Does anyone know of a script, or the syntax, that I could throw in a script file to change a Layer from "No Plot" to "Plot"? My issue is someone decided to set a certain layer to "No Plot" and I really don't want to go through 50 sheets to set that layer to "Plot".

Your help is much appreciated!

Thanks,
lordj

In script form

-layer
Plot
Plot
thislayer,thatlayer

(Note: there are two spaces after thislayer,thatlayer)

Change thislayer,thatlayer to suit. Seperate layer names with commas for multiple.

In lisp here's a quick way:

(command "-layer" "plot" "plot" "thislayer,thatlayer" "")

ccowgill
2008-02-14, 07:35 PM
I know using lisp you would input:

(command "layer" "plot" "plot" "LAYER" "")


where the LAYER in all caps is the name of the layer you wish to change

*edit* and thats what happens when you start to answer and try to double check your answer using files that no longer exist
Tim, you beat me to it :)

rkmcswain
2008-02-14, 07:37 PM
Script files are just a series of commands, in the same order you would type them in at the command line.

You'll need something like ScriptPro to run a script on multiple drawings.
http://www.autodesk.com/migrationtools