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

Change Object Layer

2 REPLIES 2
Reply
Message 1 of 3
lelandleahy
356 Views, 2 Replies

Change Object Layer

Anyone help me with simple code to change a selected object to a particual layer. The layer will always be there so no need to check. I have something already that uses the command line to do this but looking for more active x approach.

thanks in advance!
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: lelandleahy

(if (setq lst (entsel))
(vla-put-layer (vlax-ename->vla-object (car lst)) "MyLayer") )


wrote in message news:5981978@discussion.autodesk.com...
Anyone help me with simple code to change a selected object to a particual
layer. The layer will always be there so no need to check. I have something
already that uses the command line to do this but looking for more active x
approach.

thanks in advance!
Message 3 of 3
lelandleahy
in reply to: lelandleahy

thanks!

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

Post to forums  

Autodesk Design & Make Report

”Boost