Changing blocks into dynamic blocks

Changing blocks into dynamic blocks

JulLeS02
Participant Participant
422 Views
3 Replies
Message 1 of 4

Changing blocks into dynamic blocks

JulLeS02
Participant
Participant

Hi, i dont know how to say this properly, I'll give my best. 

I'm supposed to change a few hundreds of blocks into dynamic blocks. The idea was, to create 1 "generic block", with just the parameter + actions attached to it. Then I insert the dynamic block at the insertion point of the old blocks, break the dynamic block and add attributes (they might change depending on some attributes of the old blocks, thats why they aren't in the "generic block") before re-creating the dynamic block (with the saved parameter+actions) and finally delete the old non-dynamic blocks. 

 

I dont know if this is clear enough and if its even possible to do stuff  like that. So if you guys have any idea how to do this, i'd really appreciate it.

Thanks

0 Likes
423 Views
3 Replies
Replies (3)
Message 2 of 4

h_s_walker
Mentor
Mentor

The only way I can think of (sort of) is to use DESIGNCENTER (ADC), but you will need to do a lot of renaming of your "generic block"

The way I would do it is rename my generic block to one of the "old blocks" and then use designcenter to "redefine" the old block as my "generic" block and then all you have to do is add the attributes.

See the link below for more help on designcenter

About DesignCenter | AutoCAD 2020 | Autodesk Knowledge Network

 

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 3 of 4

JulLeS02
Participant
Participant
The thing is, i need a routine to this because there's a lot of DWGs where I'll have to do this, and in every DWG there's a lot of blocks to change. I found the "vla-getdynamicblockproperties" function, which gives a list of vla-objects, I thought I could add the vla-objects from this function to a block to make it dynamic, but it looks like its not possible, or maybe I'm missing something.
So, thanks for the tip, but if this is the only way to do it i'll try to work without dynamic blocks. This is supposed to make me gain a lot of time, and it looks like it would take days to do this in all the DWGs...
0 Likes
Message 4 of 4

h_s_walker
Mentor
Mentor

Unfortunately I don't know lisp so can't help you there.

And normally you cannot copy parameters outside of a block, maybe somebody who knows lisp could write a routine which could.

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes