change block layer within block.

change block layer within block.

darkfprh
Advocate Advocate
738 Views
3 Replies
Message 1 of 4

change block layer within block.

darkfprh
Advocate
Advocate

Hi. I need some help for a lisp.

I want to change blocks layer but not all.

please help me...

 

1. ssget all block.

2. change only block layer, not entity (line, circle, xref etc)

3. not first level block. only inside block.

4. block including block. (= last level's block doesn't change layer)

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

darkfprh
Advocate
Advocate

I don't speak English well.. so I attach example dwg.

0 Likes
Message 3 of 4

john.uhden
Mentor
Mentor
Accepted solution

I just recently posted a B0.lsp routine that changes all the objects within all block definitions.  I' m sure that with only limited modification it will do what you want.

John F. Uhden

0 Likes
Message 4 of 4

3wood
Advisor
Advisor

You can also try CHZ20.

Just input "INSERT1" in "Apply to subentity of".

INSERT1.PNG

0 Likes