How to get layer name selected in COPYTOLAYER command using lisp?

How to get layer name selected in COPYTOLAYER command using lisp?

developer2F83JZ
Contributor Contributor
472 Views
1 Reply
Message 1 of 2

How to get layer name selected in COPYTOLAYER command using lisp?

developer2F83JZ
Contributor
Contributor

Hi all,

 

I've used lisp to call COPYTOLAYER command to copy objects and paste in another layer.

But, if the selected layer is turned off, the pasted objects are not visibile.

So, I need to get the selected layer from COPYTOLAYER and turn off that layer.

Is it possible to get the selected layer name from COPYTOLAYER command using lisp?

0 Likes
473 Views
1 Reply
Reply (1)
Message 2 of 2

ВeekeeCZ
Consultant
Consultant

@developer2F83JZ wrote:

Hi all,

 

I've used lisp to call COPYTOLAYER command to copy objects and paste in another layer.

But, if the selected layer is turned off, the pasted objects are not visibile.

So, I need to get the selected layer from COPYTOLAYER and turn off that layer.

Is it possible to get the selected layer name from COPYTOLAYER command using lisp?


 

Post the code. I don't really follow your description... shouldn't the layer be turn on?

 
0 Likes