Sorry for the late reply. I've been trying to get something to work. I almost had it, but it failed miserably and I'm back to square one.
ronjonp, The point list is a list of all of the insertion points of the blocks I have gotten rid of. Since I'm bringing in a new block, which has the same name as the old version, I'm having to erase the old blocks, rename any remaining that are nested in other blocks, then insert the new block at the insertion point of the old version. The new version's insertion point is different that the old version's, therefore, I'm having to adjust the point list for that difference.
Lee, As usual, your code amazes me. When I first started looking at some of you code years ago, it might have been in some alien language that was totally illegible by me. Where your mind goes to create this stuff is way beyond us mere mortals. Now, with your patience, I am somewhat able follow along with what it's doing. Which scares me a little. I can see what this code is doing, but I get lost in reverse engineering it. I think what's getting me messed up is that your code assumes that the old block and the new block have separate names, when the fact is that the new block needs to replace the old one entirely. Basically doing an insert from file and overwriting the old one, only the insert points need adjusting. My first thought when trying to so this was to simple use
(command "-insert" "c://Server//DaBlock.dwg" "non" InsertionPoint
1 1 0.0)
But that doesn't allow to redefine the old block with the new. I wasn't able to find an example on the web that would help me do this. Because of this, I decided the best thing was to just erase the old ones, keep a list of their insertion points, adjust as needed, and then reinsert.
The code I wrote fails if the renamed and new blocks are in the drawing together. I am continuing exploring what each of you have taught me and see where it takes me. I'm not going to post what I have right now, I'm having to rethink it.