Replace Dynamic Block with Normal Block

Replace Dynamic Block with Normal Block

MikeKovacik4928
Advisor Advisor
925 Views
10 Replies
Message 1 of 11

Replace Dynamic Block with Normal Block

MikeKovacik4928
Advisor
Advisor

Hi all you Autocadders and Autodesk Staff world wide

 

I would like to use a function like blockreplace to replace a  dynamic block with a normal block

I have tried the "blockreplace command". It works beautifully with normal blocks, but doesn't appear to work with

a dynamic block.

Anybody got a method of doing it.

 

Mike Kovacik

AutoCAD 2d & 3d/Inventor Draughtsman

Joburg South Africa.

0 Likes
926 Views
10 Replies
Replies (10)
Message 2 of 11

MikeKovacik4928
Advisor
Advisor

Okay

 

Obviously there is no out of the box solution.

I will post this to the customisation forum to see if there an existing lisp solution.

 

Mike Kovacik

0 Likes
Message 3 of 11

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

I guess it does not make sense to run such a workflow.

E.g. If you have a dynamic block with 2 traffic signs ("one way" and "stop" as display states) ... what should the new block replacing the dynamic block do with the existing block-insertions?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 4 of 11

ВeekeeCZ
Consultant
Consultant

Have you tried to search??

There are like dozens of routines to replace blocks.

Here is one that I use occasionally. Is from @alanjt_  thx

 

0 Likes
Message 5 of 11

natasha.l
Alumni
Alumni

Hello @MikeKovacik4928

 

Thank you for posting & sorry for the delay I wanted to test this for you. 

 

I have confirmed that the BLOCKREPLACE works with both dynamic & standard blocks. Please take a look at my video where I demonstrate this with a dynamic door block(flip) & I replace it with a standard door block. 

 

I hope this helps you out. Let me know if you have any questions. 😊

 

Please "Accept Solution" if a reply or replies have helped resolve the issue or answered your question, to help others in the community.

Message 6 of 11

ВeekeeCZ
Consultant
Consultant

@natasha.l 

Nice! Thanks for sharing!

I think you are very much right! It works with dynamic blocks... Unfortunately only UNTIL you change any of its dynamic properties! Then the block becomes an anonymous clone... and the BLOCKREPLACE will not accept it anymore. 

Would you confirm this behavior too, please?

Message 7 of 11

MikeKovacik4928
Advisor
Advisor

Thanks Natasha

It does not seem to work with the particular dynamic block I am trying to replace.

Could be because the dynamic block has an ordinary block embedded in it?

I can't post as these are confidential company blocks.

See embedded screenshot jpg for what happened when I tried

AQ 084 Replace Dynamic Block with Normal Block_007.jpg

Mike

Message 8 of 11

ВeekeeCZ
Consultant
Consultant

HERE  is a routine that will allow you to count dynamic blocks too.

 

0 Likes
Message 9 of 11

natasha.l
Alumni
Alumni

Hello @MikeKovacik4928

 

Yes, having embebbed a block within another block will not allow the BLOCKREPLACE to function properly.

 

Although, I do have a suggestion... try exploding the embedded block in the "Block Editor" then save/close the dynamic block. Try BLOCKREPLACE again. 

 

Please "Accept Solution" if a reply or replies have helped resolve the issue or answered your question, to help others in the community.

 

 

 

0 Likes
Message 10 of 11

MikeKovacik4928
Advisor
Advisor

Thanks

It works perfectly! but won't work for what I want.

I downloaded it a while back and forgot I had it.

I think the reason I never used it is because if there is the same  dynamic block

in the plan view say 1000 times, but the look up states are different for groups of

say 200 with a 1st look up state, 250 with a 2nd look up state, the rest with a 3rd look up state,

then it still doesn't help, I want to know the quantities of each different look up state.

 

Mike

 

 

0 Likes
Message 11 of 11

ВeekeeCZ
Consultant
Consultant

I see. I never used it.

Anyway, how about go back and use the build-in DataExtraction command. It can work with dynamic blocks. Just made a quick test:

 

image.png

0 Likes