
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to write a script to freeze all layers except "XLYP1H18". The difficulty is I don't know all the layer names as it changes in each DWG. The script below changes the current layer to "XLYP1H18" and then I am trying to freeze ALL layers (as you can't freeze the current layer this should do what I want)
---------------------------------------------------------------------------
-LAYER
Set
XLYP1H18
-LAYER
Freeze
all
---------------------------------------------------------------------------
After selecting "Freeze" the following appears on the command line...
Enter name list of layer(s) to freeze or <select objects>:
I want the script to enter "select objects" then I can use "All". I have tried a lots of combinations of spaces, returns and putting the text in quotes but with not luck.
Can anyone help?
Thanks in advance
M
Solved! Go to Solution.