Controlling User Deleted Items
Controlling User Deleted Items
(OP)
Hello All,
I am trying to capture (with VBA code) the object that is being deleted when the user presses the Delete key on his/her keyboard. When I write any code in the AcadDocument_ObjectErased event, the object is gone by the time any code executes. I can retrieve the ObjectID of the deleted object, but not any other attributes as it is already deleted. Any ideas on how to do this. Thanks in advance.
I am trying to capture (with VBA code) the object that is being deleted when the user presses the Delete key on his/her keyboard. When I write any code in the AcadDocument_ObjectErased event, the object is gone by the time any code executes. I can retrieve the ObjectID of the deleted object, but not any other attributes as it is already deleted. Any ideas on how to do this. Thanks in advance.
Thanks,
T-Tops
RE: Controlling User Deleted Items
If you have object ID, can't you un-delete (restore) it, then retrieve info, then re-delete it?
In lisp, (entdel Entityname) will restore an objected delted during the editing session.