ObjectErased event question
Not applicable
11-15-2001
11:02 PM
All,
I have a polyline with xdata attached to it. The xdata contains three
handles to other objects. In the ObjectErased event, I would like to
retrieve the xdata and delete the other three objects as well.
However, in order to retrieve the xdata in ObjectErased, I need an
object, which no longer exists in the database. The ObjectErased Event
gives me an ObjectID. I tried ThisDrawing.ObjectIDtoObject but I
received an error (the object is already gone).
How should I handle this? Should I store the xdata elsewhere in another
object, or use a dictionary? Something/somewhere else?
Any ideas would be greatly appreciated. Thanks,
Danny Polkinhorn
Perkins & Will
Atlanta
I have a polyline with xdata attached to it. The xdata contains three
handles to other objects. In the ObjectErased event, I would like to
retrieve the xdata and delete the other three objects as well.
However, in order to retrieve the xdata in ObjectErased, I need an
object, which no longer exists in the database. The ObjectErased Event
gives me an ObjectID. I tried ThisDrawing.ObjectIDtoObject but I
received an error (the object is already gone).
How should I handle this? Should I store the xdata elsewhere in another
object, or use a dictionary? Something/somewhere else?
Any ideas would be greatly appreciated. Thanks,
Danny Polkinhorn
Perkins & Will
Atlanta
Link copied