Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbLight::subErase Method
Syntax
C++
virtual OdResult subErase(bool erasing);

Called as the first operation when this object is being erased or unerased. 

 

Parameters
Description
erasing
[in] A copy of the erasing argument passed to erase().

Returns eOk if and only if erase() is to continue.

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:

  1. If the OdDbObject's state is incorrect, return something other than eOk.
  2. If the parent class's subErase() returns anything other than eOk, immediately return it.
  3. If other actions are required before erase, do them.
  4. 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.

Copyright © 2002-2022. Open Design Alliance All rights reserved.