Convert All Objects and Nested Blocks to 1 Layer

Convert All Objects and Nested Blocks to 1 Layer

Anonymous
Not applicable
71,566 Views
31 Replies
Message 1 of 32

Convert All Objects and Nested Blocks to 1 Layer

Anonymous
Not applicable

I need to select an entire drawing and convert all objects including nested blocks to one and the same layer. Can anybody possibly help with a script?

Accepted solutions (3)
71,567 Views
31 Replies
Replies (31)
Message 21 of 32

Baltona
Contributor
Contributor

yes  i'm  NOT using LT at all 

0 Likes
Message 22 of 32

Vinayv4v
Advisor
Advisor
Accepted solution

The command you need to type for LAYERFIX is BLAST.

 

                               &

For FIXBLOCK the command you have to enter is BL03

Cheers,

Vinay Vijayakumaran

Message 23 of 32

Baltona
Contributor
Contributor

you are Good. its working 

 

0 Likes
Message 24 of 32

Vinayv4v
Advisor
Advisor
Accepted solution

Hello,

 

Glad to help.

 

Please close your previous post by marking a solution which helped you so that it could help someone with similar issues.

 

https://forums.autodesk.com/t5/autocad-forum/merging-multiple-blocks-into-one-layer/td-p/7504459

Cheers,

Vinay Vijayakumaran

0 Likes
Message 25 of 32

Anonymous
Not applicable

Hey

i tried to load the files in autocad. But it didnt do anything. it shows me unknown command error 




 

0 Likes
Message 26 of 32

Peac3
Advocate
Advocate

Ahhh wow, thanks for these lsp files.. layerfix.lsp is incredible..

 

I received a Revit DWG extraction with 5 large floors and perhaps 1000 doors.. all separate blocks.

 

I used your lsp to transfer all these layers, inside these blocks, to layers to 0 automatically.

 

This is a very very good day for me, and it's almost over too. YAAAA!

 

 

0 Likes
Message 27 of 32

curly.hart
Participant
Participant

BELTB works well, but having to select one block at a time makes it near impossible to use. There could be a couple of hundred blocks in a drawing, and it's very difficult to find them all and click on them one at a time.

What I'm trying to achieve is to get nested objects off layer 0, so that when I turn them off in my drawing layer 0 doesn't get turned off. If anyone has other suggestions of how to achieve this please let me know. The current method is to select all blocks and explode, repeat until there are no blocks, then select everything on layer 0 and move it to another layer, normally layer ZERO.

0 Likes
Message 28 of 32

trichburgVUEU5
Observer
Observer

@Vinayv4v This "BeltB" LISP is exactly what I was looking for; however, I was wondering if there was a way to adjust it to allow multiple block selections at once? For instance, I have multiple blocks from a site survey file (hundreds) that I want to perform this same function as all the internal linework of the blocks is currently on layer 0. And while this is still faster than doing it manually, just curious if there is a way for multiple block selections at once. 

0 Likes
Message 29 of 32

hay_marwin
Community Visitor
Community Visitor

I have tried all three LPS command. These are really useful and thank you so much for creating this solution.

 

Only one hightlight and feedback is :

For only FixBlock LPS have one thing to highlight , the Lineweight & Transparency properties was not changed to it's blocks sub-entities on layer, which mean not changed to " ByBlock"...

 

Thanks !

 

 

0 Likes
Message 30 of 32

hay_marwin
Community Visitor
Community Visitor

And there is another thing to highligt is , the command only application per block object. Could not able to select multiplie blocks or objects.

0 Likes
Message 31 of 32

Penava
Participant
Participant

You can change all nested layers in a block(s) to "0" without LISP.

First, you need  to select blocks that need to be changed.

Then, type SetNestedObjectsByBlock

Done!

Message 32 of 32

chris.munoz36NEP
Explorer
Explorer

SetNestedObjectsByBlock 😍

0 Likes