API Reference > OdDb Classes > OdDbObject Class > OdDbObject Methods > OdDbObject::swapIdWith Method
OdDbObject::swapIdWith Method
Syntax
C++
void swapIdWith(OdDbObjectId otherId, bool swapXdata = false, bool swapExtDict = false);
Parameters 
Description 
OdDbObjectId otherId 
[in] Object ID of object with which to swap.  
bool swapXdata = false 
[in] XData will be swapped if and only if swapXData is true.  
bool swapExtDict = false 
[in] Extension dictionaries will be swapped if and only if swapExtDict is true. 

Swaps the objectIDs, handles, XData,and extension dictionary between this object and another object. 

 

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