replace block with new block, but keep attribute

replace block with new block, but keep attribute

michaelZCXYL
Enthusiast Enthusiast
2,179 Views
10 Replies
Message 1 of 11

replace block with new block, but keep attribute

michaelZCXYL
Enthusiast
Enthusiast

Hello,

 

I am wondering if it is possible to replace old blocks, but keep attribute value, thank you very much in advance.

 

 

0 Likes
Accepted solutions (1)
2,180 Views
10 Replies
Replies (10)
Message 2 of 11

3wood
Advisor
Advisor
Accepted solution

You can either redefine the block definition or try MBLOCKREPLACE. (Only applicable to same attribute tags)

MBLOCKREPLACE.gif

Message 3 of 11

Sea-Haven
Mentor
Mentor

If you remake the block in another dwg with same attribute tag, then copy and paste to other dwg it should ask to redefine, then use attsync. Used this on old dwgs when corporate logo changed in title block.

0 Likes
Message 4 of 11

ВeekeeCZ
Consultant
Consultant

Even the built-in Express Tools BLOCKREPLACE can do that.

 

BeekeeCZ_0-1656402248767.png

 

0 Likes
Message 5 of 11

michaelZCXYL
Enthusiast
Enthusiast

Thank you very much all of you. I want to use dynamic block to replace old block. I can't find mblockreplace command in AutoCAD2023, is it an app lisp? Block replace did not work, please see image below,

 

michaelZCXYL_1-1656432598140.png

 

Could you please advise me how to redefine block? I edit block and keep the change, it looks like good, but I can't change attribute location. I tried remake same name and same tag block in another dwg, it did not work. I tried it again later, thanks again.

 

0 Likes
Message 6 of 11

pendean
Community Legend
Community Legend
@michaelZCXYL You missed the hidden link in that reply, here it is https://sites.google.com/site/cadkits/home/mblockreplace

None of the tools above work on dynamic blocks AFAIK: you ought to have stated as much in the first place. Lets see if that can get edited.
Message 7 of 11

michaelZCXYL
Enthusiast
Enthusiast

Hello, 

I did not know it, but I can create new static block or change dynamic block to static block. My questions remain, thanks a lot!

0 Likes
Message 8 of 11

Sea-Haven
Mentor
Mentor

If its a dynamic block it would have a new name ? So get old block info including atts, erase then insert dynamic block and set atts or dynamic properties. Use Lee-mac dynamic block.lsp Not a simple task.

Message 9 of 11

michaelZCXYL
Enthusiast
Enthusiast

Hello, thank you very much all of you.  😀

0 Likes
Message 10 of 11

yannTCJWH
Participant
Participant
Hi,
When I have this kid of message, I just type name of this dynamic block and it's work.

You can use RIblock from cad -studio for this kind of replace with dynamic
https://www.cadstudio.cz/en/download.asp?file=RIblock
sincerly
Message 11 of 11

michaelZCXYL
Enthusiast
Enthusiast

Many thanks.

0 Likes