Update a Block definition from the Tool Palette

Update a Block definition from the Tool Palette

brian_shick
Enthusiast Enthusiast
2,208 Views
2 Replies
Message 1 of 3

Update a Block definition from the Tool Palette

brian_shick
Enthusiast
Enthusiast

We have recently mad a change to the block used on our Tool Pallet and need to include code to force and update of those blocks on existing drawings when the item is picked.

 

We built a lot of our default fittings and call-outs as blocks on a master drawing then created a tool pallet with them on several specific group's tabs.  over the years drawings have been created using them... Now we get the word that a specific call-out block must be changed to look differently.  I made the change using block editor within the master drawing and updated the tool pallet.  On new drawings it places just fine, but on the old drawing it still place the old block even though the tool pallet icon is correct.

 

So It seems to be s Block Definition problem needing to be refreshed with the updated look.  We can use the Design Center and manually force the change, but I wondered if there could be a way to fire off some kind of code to programmatically force a block update.

 

Or maybe a macro something like this:

^C^C(-insert "ValveName" = "L:\Master Blocks\BaseBlockDWG" ! "ValveName")

 

Thanks for any help or suggestions...!

0 Likes
Accepted solutions (1)
2,209 Views
2 Replies
Replies (2)
Message 2 of 3

CodeDing
Advisor
Advisor
Accepted solution

@brian_shick ,

 

If I interpreted this correctly, are you aware that in an "old" drawing you can right-click the updated block in the tool palette and select "Redefine"?

 

Best,

~DD

0 Likes
Message 3 of 3

brian_shick
Enthusiast
Enthusiast

Well.... now I feel dumb.

I forgot all about that function.  That always seems to be my problem, always trying to make things harder that they are...

 

Thank you sooooo much!