Update blocks while keeping attributes position

Update blocks while keeping attributes position

jlc.pub
Enthusiast Enthusiast
598 Views
6 Replies
Message 1 of 7

Update blocks while keeping attributes position

jlc.pub
Enthusiast
Enthusiast

Hi,

 

I use a block named "Door" in several plans.

This block is stored in a dwg.

We decided to add 2 new attributes to this block so we updated  the block dwg (same name).

 

Now I need to update all the plans with the new version of the block but we'd like to keep the attribute position if they were modified.

This position is not kept if I do an "insert" which update the block definition and "ATTSYNC"...

 

Is there a way to achieve that ? Thanks by advance,

0 Likes
Accepted solutions (1)
599 Views
6 Replies
Replies (6)
Message 2 of 7

paullimapa
Mentor
Mentor
Message 3 of 7

pendean
Community Legend
Community Legend
When you can a chance, share a sample DWG with your new door and a sample DWG with your old door, let's all try to replicate your issue.

0 Likes
Message 4 of 7

Simon_Weel
Advisor
Advisor

There's the option Lock Position:

Simon_Weel_0-1707986512669.png

Don't know what will happen to existing inserts when you change this, so give it a try?

Message 5 of 7

jlc.pub
Enthusiast
Enthusiast

Here is an example with a drawing and the new door block in which I added an EXTRA attribute.

 

Attribute "width" has been moved on one reference... We'd like to keep it at his position.

0 Likes
Message 6 of 7

TheCADnoob
Mentor
Mentor
Accepted solution

Check out this lisp. It seems like its what you need. (I have not tested it nor can I vouch for it)

 

https://www.cadforum.cz/en/how-to-update-a-block-while-keeping-its-attribute-position-tip12150

 

 

CADnoob

EESignature

Message 7 of 7

jlc.pub
Enthusiast
Enthusiast

Perfect, it works !

 

Thanks a lot

0 Likes