I have many layers i would like to see them forced to specific linetypes.
Let say;
Layers.............Linetypes
M-N-INC-25--->Hidden-25
M-N-INC-32--->Hidden-32
I would like to bind this function to a button and each time i click the button it set the layers to the specific linetypes above.. and when i click button one more time it set all these layers back to "By Layer" ...
if its not possible i could use 2 button instead but its less impressive
used as a learning experience... minimal error checking and testing
Edit as necessary
BTW... you can't set a layer's linetype to Bylayer, I used Continuous
First line > takes the layer's name, strips all but the last 2 characters and tacks it on to Hidden-, then searches to see if the linetype Hidden-nn is loaded. If it is loaded it sets the layer's linetype to Hidden-nn (line 2). If the linetype is not loaded it skips to line 3 and gives you an alert to load it first.
As far as the rest, I suppose it could done, but maybe layer states would be easier.