API Reference > OdDb Classes > OdDbViewTableRecord Class > OdDbViewTableRecord Methods > OdDbViewTableRecord::subSwapIdWith Method
OdDbViewTableRecord::subSwapIdWith Method
Syntax
C++
virtual void subSwapIdWith(const OdDbObjectId& otherId, bool swapXdata = false, bool swapExtDict = false);
Parameters 
Description 
const OdDbObjectId& otherId 
[in] Object ID to be swapped with this object's Object ID.  
bool swapXdata = false 
[in] If and only if true, extended data are swapped.  
bool swapExtDict = false 
[in] If and only if true, extension dictionaries are swapped. 

Called as the first operation of swapIdWith 

 

This function is notified just before an object is to be opened; giving this function the ability to cancel the object being swapped or perform necessary actions. 

When overriding this function: 

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

2) Call parent class's subSwapIdWith(). 

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

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

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