Hello there,
i need a lisp routine that sets all layers OFF except those including
some substrings in the layer name (example if the excluded items list : "Top" , "Bootom").
In this example , a layer named "layertop18" or "layerTOP18" or "layerToP18"
must be also excluded.
Can anybody help me in this?
Gery
Solved! Go to Solution.
Solved by Kent1Cooper. Go to Solution.
@GeryKnee wrote:
....
i need a lisp routine that sets all layers OFF except those including
some substrings in the layer name (example if the excluded items list : "Top" , "Bootom").
In this example , a layer named "layertop18" or "layerTOP18" or "layerToP18"
must be also excluded.
....
The Layer command is not case-sensitive in the use of Layer names in its options, so you can do this:
(command "_.layer" "_off" "*" "_yes" "_on" "*top*,*bottom*" "")