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

This function is called as the first operation of the swapIdWith() function. 

 

This function allows derived classes to implement custom behavior during the swapIdWith operation. 

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

 

OdDbObject::swapIdWith

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