Then bob.at's suggestion should do well for you:
(command "_layer" "_off" "1,2,3,4" "_on" "5" "")
[except that for me in ADT [this may not be true for you], I have to put the decimal place in front
of "_.layer" for it to work.]
Or, converted to macro language so you can do it in mid-command, and expanded up to 9 Layers:
[GuideLines1]'-LAYER Off 2,3,4,5,6,7,8,9 On 1 ;
[GuideLines2]'-LAYER Off 1,3,4,5,6,7,8,9 On 2 ;
[GuideLines3]'-LAYER Off 1,2,4,5,6,7,8,9 On 3 ;
[GuideLines4]'-LAYER Off 1,2,3,5,6,7,8,9 On 4 ;
[GuideLines5]'-LAYER Off 1,2,3,4,6,7,8,9 On 5 ;
[GuideLines6]'-LAYER Off 1,2,3,4,5,7,8,9 On 6 ;
[GuideLines7]'-LAYER Off 1,2,3,4,5,6,8,9 On 7 ;
[GuideLines8]'-LAYER Off 1,2,3,4,5,6,7,9 On 8 ;
[GuideLines9]'-LAYER Off 1,2,3,4,5,6,7,8 On 9 ;
If you're putting them into Toolbars or something with icons, you can porbably dispense with the
[bracketed] headings, but you would need them for a Screen menu or Pull-down menu. You could also
leave them there even where they're not needed, for identifying what the menu items are for when you
get back into the menu later.
--
Kent Cooper
neeboy74 wrote...
Hello Kent; here's exactly what I'll be using this for:
I will have 9 layers. Each of these layers will have guidelines on them. These guidelines will be
used as "snap lines" when I draw elevations. That way, I can draw an elevation, then dimension it
across the bottom and snap the dimensions to these guidelines. You can see why only 1 layer should
be on at a time, otherwise I'd have a jumble of un-needed lines on the screen at once.
The layers will be different in that the spacing between the lines will shrink as the annotation
scale changes, with the "Full-Scale Layer" having the lines closest together in Model Space.
I really like your idea of being able to invoke this command while in the middle of something else
(because I know I'll forget to set this before dimensioning)
The layers will not be frozen but I will have them locked so that the lines can't be moved. I will
also not be drawing anythng on these layers after setting up the guidelines.
If you could write code for this that'd be super. Each layer could be labeled sequentially 1-9 for
this purpose. Thanks so very much!