Block attribute- Change layers but preserve original layer name

Block attribute- Change layers but preserve original layer name

tervezesWZRYH
Explorer Explorer
559 Views
4 Replies
Message 1 of 5

Block attribute- Change layers but preserve original layer name

tervezesWZRYH
Explorer
Explorer

Hi Everyone, 

 

I have several dynamic blocks with attributes. One of the attributes is an object field - it shows the name of the layer. 

Each block represents a tree with a special code number- which is the name of the layer. 

I want to move all the tree blocks to a new layer so that I can handle all the blocks at once but preserving the original layer name as an attribute but without the link to the current layer.

 

Is there any way to remove the link between the layer name and the attribute but keeping the original info in the attribute?

 

Thanks very much in advance. 

 

0 Likes
Accepted solutions (1)
560 Views
4 Replies
Replies (4)
Message 2 of 5

Libbya
Mentor
Mentor
Accepted solution

I'm not sure I understand your rationale.  You can keep the blocks on their current layer(s) and still 'handle them all at once'.  For that I would typically select them all using QSELECT and then if you don't want any other linework/objects present, isolate them all using ISOLATEOBJECTS.  Given that, why do you want to wipe out the fields which seem to serve a purpose and might be challenging to replace?

 

That said, I believe that the FIELD2TXT utility on this page does what you are asking:  https://www.cadstudio.cz/freeware.

Message 3 of 5

tervezesWZRYH
Explorer
Explorer

Hi Libbya! Thank you for replying!

I forgot an important detail. Each tree block is on a different layer (named the tree's code number) to begin with. The layer name- the code is referenced as a field attribute.  I want to move all the blocks to a new layer named 'trees' but I want to keep the original code number as an attribute. As I move the blocks to a new layer because of the field reference- the attribute will show the new layer's name.

0 Likes
Message 4 of 5

tervezesWZRYH
Explorer
Explorer
Hi Libbya! Thank you for replying!

I forgot an important detail. Each tree block is on a different layer (named the tree's code number) to begin with. The layer name- the code is referenced as a field attribute. I want to move all the blocks to a new layer named 'trees' but I want to keep the original code number as an attribute. As I move the blocks to a new layer because of the field reference- the attribute will show the new layer's name.
0 Likes
Message 5 of 5

Libbya
Mentor
Mentor

I understood that from your initial post.  What I didn't (and still don't) understand is why you want to change the blocks so that they are all on the same layer.  Why?  It is a relatively simple task to isolate all of the blocks of a particular definition (or even multiple definitions) regardless of what layer(s) they are on using the method I described.  Why do you want to ruin the fields? 

 

I also gave you all the information you should need in order to turn the fields into text and change them all to the same layer in my last post. 

0 Likes