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

Prevent certain object in a layer change to new layer automatic

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
lai
Advocate
317 Views, 2 Replies

Prevent certain object in a layer change to new layer automatic

Hi all, i need help with this lisp..It work fine but just that i need some minor modificatio to it...At moment, when i activate the lisp, it will automatic select all dimension,leader and multileader to a layer call "DIMENSION"...Anyway i wonder if it is possible to prevent any dimension,leader or multileader in layer "Section" will not be change to layer "Dimension"?

2 REPLIES 2
Message 2 of 3
lai
Advocate
in reply to: lai

Sorry, forget with the LISP attachment.

Message 3 of 3
pbejse
in reply to: lai


@lai wrote:

Hi all, i need help with this lisp..It work fine but just that i need some minor modificatio to it...At moment, when i activate the lisp, it will automatic select all dimension,leader and multileader to a layer call "DIMENSION"...Anyway i wonder if it is possible to prevent any dimension,leader or multileader in layer "Section" will not be change to layer "Dimension"?



(setq ss   (ssget "_X"
                            (list '(0 . "DIMENSION,LEADER,MULTILEADER")
                                   '(8 . "~Dimension")'(8 . "~Section")(cons 410  (getvar 'Ctab)))))

 

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

Post to forums  

Autodesk Design & Make Report

”Boost