PDA

View Full Version : Layer Freeze and PDF Script


Pinkguju
17-10-2008, 04:56 PM
Good Morning!!
I am in the process of writing a script that can do the following:
1. Freeze layers on the current drawing
2. Freeze layers on the xrefed drawing (there is always a 4 digit number in the xrefed file name, which is what i was using in the script)
3. Insert a block attrobute
4. Plot a PDF to file

I have all of the above except for number 2. Is there anyone that can help me with this one?

architech
17-10-2008, 08:38 PM
post the script up.. so we can see what you got...

Pinkguju
19-10-2008, 01:34 PM
For freezing layers on an Xref drawing i have the following:

-layer;f;####|`A-anno;;f;####|`E-****-demo
and so on.

the "####" before the | is so that we can freeze any of those layers that are after the | on any file that has a continuous 4 digit number.

As far as the actual layer name. there are numerous layers that have the same start so i wanted to look for the text that i have in the script, in this example "A-anno" and freeze them all.

For the second layer in this example "E-****-demo" this would freeze any layer that had an "E" in the front and the word "demo" at the end.

I tried putting the layer names in quotes but since there are wildcards i deleted them (the quotes)