Lips like LAYMCUR that works with objects inside a block or dynamic blocks.

Lips like LAYMCUR that works with objects inside a block or dynamic blocks.

latif_ozdem
Contributor Contributor
329 Views
2 Replies
Message 1 of 3

Lips like LAYMCUR that works with objects inside a block or dynamic blocks.

latif_ozdem
Contributor
Contributor

Hello,

 

Is it a possible to work with LAYMCUR command with nested objects in a block/dynamic blocs? Is there any lisp for this kind of command? 

 

I simply would like to change the current layer into an object`s layer which is in a block/dynamic block. 

 

I would be glad if you can help about it. 

 

Regards..

Latif

 

0 Likes
Accepted solutions (1)
330 Views
2 Replies
Replies (2)
Message 2 of 3

cadffm
Consultant
Consultant
Accepted solution

Hi,

 

sure! But the Question is: What Layer you are after?

A very simple one, without Error handling:

(defun c:LAYMCUR+ nil (command "_.-LAYER" "_set" (cdr(assoc 8 (entget (car(nentsel))))) ""))

 

But if you select an object within an Xref..

or an object what is drawn on Layer 0 inside a block (what is the most common practise)

 
 

 

 

Sebastian

Message 3 of 3

latif_ozdem
Contributor
Contributor

Thank you so much for your quikck answer. I will try the lisp you have shared. 

 

I could not understand your question but let me try to explain wha I am searching for: 

 

Let us think that, there is a block and there are some different objects in it. And they are in different layers. Not `0`. And I would like to be able change the current layer into any of them just selecting it. It is very similar to LAYMCUR procedure but LAYMCURE does not allow us to select objects (and their layers) in blocks. 

 

Best Regards,

 

0 Likes