Script Freezing Layers Names with Special Characters

Script Freezing Layers Names with Special Characters

Owackenreuther
Advocate Advocate
966 Views
2 Replies
Message 1 of 3

Script Freezing Layers Names with Special Characters

Owackenreuther
Advocate
Advocate

I'm trying to freeze certain layers using a basic script but layers with special characters, specifically "#" symbol, are ignored.

 

How can I freeze layers with special character in the layer names?

 

(command "-layer" "F" "001_2020Q3 End Completed Construction" "")

 

 

Command: (command "-layer" "F" "AAA#" "")
-layer
Current layer: "0"
Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile]: F
Enter name list of layer(s) to freeze or <select objects>: AAA#
No matching layer names found.
Enter an option [?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/TRansparency/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile]:
Command: nil

0 Likes
Accepted solutions (1)
967 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant
Accepted solution

See THIS  page. There is a table of wildcards in the middle of the page. If your layer name contains any of those, you need to use the last one to take the prior ones literally.

layer`#

Message 3 of 3

Owackenreuther
Advocate
Advocate

That makes sense.

 

Thank you!

0 Likes