Hi to all,
I need to mask the normal delete command of a db entity; my problem is:
the user select a db object, press the "canc" key and my arx code resolves
the deleting action ...
If some constraints are true the code delete the object, otherwise not, the
erase command will not work.
Hi Leonard,
override AcDbObject::subErase (or use AcDbObjectOverrule::erase) to intercept the erase procedure and to prevent the object form being erased, if necessary.
Arnold
Hi Arnold,
your solution is only valid to custom class derived from AcDbObject and/or
AcDbEntity ? If I use native class such as AcDbBlockReference or AcDbPolyLine ?
Many Thanks
Leonard
Hi Anodl,
there is an example how to use the AcDbObjectOverrule class ? Must I derive
a my class from it ? where I have to instantiate the erase method (inside
ObjectARX EntryPoint class) ?
Many Thanks
Leonard