Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set All Layers OFF except those in excluded items list

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
GeryKnee
252 Views, 3 Replies

Set All Layers OFF except those in excluded items list

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

3 REPLIES 3
Message 2 of 4
Kent1Cooper
in reply to: GeryKnee


@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*" "")

Kent Cooper, AIA
Message 3 of 4
3wood
in reply to: GeryKnee

You can also set up a New Property Filter in Layer Properties Manager.

Message 4 of 4
GeryKnee
in reply to: Kent1Cooper

 

Thanks Kent

Gery

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost