API Reference > OdDg Classes > OdDgElement Class > OdDgElement Methods > OdDgElement::handOverTo Method
OdDgElement::handOverTo Method
Syntax
C++
void handOverTo(OdDgElement* pNewElement);
Parameters 
Description 
OdDgElement* pNewElement 
[in] Pointer to the object with which to replace this object in the database. 

Replaces this database -resident (DBRO) object with the specified non- database -resident (NDBRO) object, while retaining this object's elementId, handle, owner, and reactor list. 

 

This object must be open OdDg::kForWrite. 

The replacement object will opened OdDg::kForWrite, and must be closed. 

It is up to the caller to delete the replaced (this) object.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.