Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbObject::subHandOverTo Method
Syntax
C++
virtual void subHandOverTo(OdDbObject* pNewObject);

Called as the first operation of the handOverTo function. 

 

Parameters
Description
pNewObject
[in] Pointer to the object with which to replace this object in the database.

This function allows custom classes to populate the new object. 

Overriding this function in a child class allows a child instance to be notified each time an object is handed over. 

This function is notified just before an object is to be handed over; giving this function the ability to cancel the handover. 

When overriding this function: 

1) If the OdDbObject's state is incorrect, throw exception. 

2) Call parent class's subHandover(). 

3) If other actions are required before handover, do them. 

The default implementation of this function does nothing. This function can be overridden in custom classes.

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