cannot freeze, turn off, or change color of layers
issue
you noticed that you cannot turn off, freeze, or change the color of layers that contain the characters "#", "@", or "~" in the new layer properties manager used in autocad® 2009.
solution
you cannot turn off, freeze or change the color of a layer if the layer name contains the characters "#", "@", or "~" because these characters are wildcards in the new layer properties manager.
to resolve this problem, use one of the following workarounds:
set the value of the layerdlgmode variable to 0.
the layer properties manager from previous versions of autocad will be used instead, and these characters will not be considered wildcards.
or
on the command line, enter vbastmt and then paste the following code on the command line:
for each mylayer in thisdrawing.layers: mylayer.name = replace(mylayer.name, "@", "rpl"): mylayer.name = replace(mylayer.name, "#","rpl"): mylayer.name = replace(mylayer.name, "~","rpl"): next
this code iterates through the layers database and replaces the characters "@", "#", and "~" with the string “rpl”, in the layer name.
if you want, you can use a different replacement string by replacing all instances of "rpl" in the above code with the desired string or character before pasting the code on the command line.