The ObjectModified event fires when a change is
made to an object, including when changes are
undone, so what you say below is not the case,
the ObjectModified event fires when an erase is
undone.
You should be aware that in AutoCAD 2008, a
bug exists that makes it impossible to remove
a database event handler. You can remove the
handler from the event, but the event continues
to fire the handler.
You can look at the IsUndoing property of the
DBObject passed into the event args, to see if
the change is caused by undo.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
wrote in message news:5676875@discussion.autodesk.com...
Is there any way to catch the Autocad undo event? Well, actually what I'm interested in is if a particular object gets restored in a drawing due to the user undoing an erase. Scenario is: I have an object, a user deletes it (I can catch the ObjectErased event and check the e.DBObject property), then the user clicks undo, the object comes back but the problem is it doesn't generate any ObjectAppended or ObjectModified events. How can I get a reference to that object? Is there a reactor to undo or something I can use? What event does this operation fire? Thank you.