I have a program that draws geometry. It worked under any circumstance in R14. It has an undo "BE" and undo "End" so when I undo, it completely undos several loops of drawing. In R2005 I can run it, but if I undo it then try to run it again I get an error: Command: area_clear3 Select internal point: < point > Calculating offsets......Please wait. Error: AutoCAD.Application: Object was erased All my variables are local so it shouldn't be looking for an object that was erased. I can erase the geometry and then run the program again and it workes fine. If I re-open the drawing it works okay. Any ideas? TIA Bill