Copying An block with attribute tags without changing Handle ID

Copying An block with attribute tags without changing Handle ID

Anonymous
Not applicable
7,672 Views
4 Replies
Message 1 of 5

Copying An block with attribute tags without changing Handle ID

Anonymous
Not applicable

I'm really new to AutoCAD and I am  mostly getting use to it. I so far understand how to make blocks with attributes and other things. I have been playing around with a way with updating block attributes with the use of excel. I have done so but I  improve what I did but I'm stuck. The issue I'm  stuck with AutoCad usage of handles.When I generate the excel file I see that AutoCad gives each block in my drawing a handle id. Is there a way (let say I made a block) when I copy it, AutoCad will not create a handle id of that copy. There is a "link" between the copy's and the original block. To clarify I posted my results I got on excel.Based on what I got from my excel,lets say for example, The original block  ID CB-W-TL is made and I need it across the drawing, so I make copies. The goal I want to achieve is that when I made the copies, AutoCad doesn't generate a new handle for each one... the copies is linked the the original handle. So when you change the attributes of the original it will carry through to the copies. I basically do not want a big excel file with each object labeled if some of them will be copies and will be used in the drawing.

 

 

Excel Example.JPG

0 Likes
7,673 Views
4 Replies
Replies (4)
Message 2 of 5

Erense
Collaborator
Collaborator

In my opinion there is no way to keep the Handle/ID, because the Handle/ID is intended to create a unique value for each object in the drawing.

 

Only way this to do is create all blocks, export the data to Excel, change the data in Excel and update the data from Excel to the blocks while using a unique value (like your ID) inside of the block to link to.

Might even be a lisp needed to automate this when you are not using data-extraction.

If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!

Kind regards,

Edwin Rense
Cadac Group AEC BV
Supporting Consultant AEC
Cadac Group .
0 Likes
Message 3 of 5

jggerth
Advisor
Advisor

Handles are always unique in any drawing.    Two identical blocks will always have different handles, and a copy of a block will have a different handle than the original block.  that applies to lines, circles, text, etc.  And handles are static between session, unlike entity names which are also unique, but not static between drawing sessions.

 

You'll need to mess around in Excel to group and sort by block name or attribute values to see a simplified display / schedule

0 Likes
Message 4 of 5

k.spanoudakisCPQW3
Participant
Participant

Hello people,

 

I couldn't find anything relative so I cross my fingers and post it here.

 

I have several files of groundfloors that contain several blocks and block instances.

These blocks contain attributes that have to be different for each one of them.

 

The issue is that (since the floorplans are the same for several floors) I copied/paste the blocks, and now they have the same handle.

More specifically, I have the same set of blocks, with the same handles on multiple floors, and therefore I cannot use ATTIN and ATTOUT to work with the values of the attributes.

 

Any assistance will be greatly appreciated!

0 Likes
Message 5 of 5

cadffm
Consultant
Consultant

Hi,

 

best solution: Use another tool to export/import attributes what is

working with multiple files-> search for it, there are a lot of them.

 

or: Use attin/attout, one per dwg...

And if you need this in excel as a complete list for editing, then add "File" for a column,
so you can split them again later - to attin.

 

 

Sebastian

0 Likes