Wondering if anyone has code, or know of an example I can start from, to redefine a block. I use the words "redefine", because that is what AutoCAD asks me when I try to reinsert the same block that already exists in the drawing. That is the only way I know how to update the block without deleting it, purging it, then reinserting it.

Open drawing
Insert Block
Save Drawing
Close Drawing
Open Drawing that was used as the Block
Change it
Save it, close
Reopen first drawing
Block needs to be updated
Reinsert block using the browse button
Message pops up asking to redefine block
Click Yes
Block is now updated

Wanting to code this if possible.