Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbObject::handOverTo Method
Syntax
C++
void handOverTo(OdDbObject* pNewObject, bool keepXData = true, bool keepExtDict = true);

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

 

Parameters
Description
pNewObject
[in] Pointer to the object with which to replace this object in the database.
keepXData
[in] This object's XData will be retained if and only if keepXData is true.
keepExtDict
[in] This object's extension dictionary will be retained if and only if keepExtDict is true.

This object must be open OdDb::kForWrite. 

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

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

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