Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling User Deleted Items

Status
Not open for further replies.

TTops

MIS
Sep 13, 2004
70
US
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.

Thanks,
T-Tops
 
I don't know VBA, but...
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top