Called as the first operation when this object is being erased or unerased.
Parameters
Parameters
Description
erasing
[in] A copy of the erasing argument passed to erase().
Returns
Returns eOk if and only if erase() is to continue.
Remarks
This function is notified just before the current object is to be erased, giving this function the ability to cancel the erase. When overriding this function:
If the OdDbObject's state is incorrect, return something other than eOk.
If the parent class's subErase() returns anything other than eOk, immediately return it.
If other actions are required before erase, do them.
Return eOk.
If you must make changes to this object's state, either make them after step 2, or roll them back if step 2 returns anything other than eOk. Also the m_bHighlighted member of this object is set to false if 'erasing' is true.