(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!