AcMapQueryPE::swapIdWith Method

Land Desktop Development ARX CPP SDK

AcMapQueryPE:: swapIdWith Method
 

Swap ID with the prototype entity during saving back.

virtual Acad::ErrorStatus swapIdWith(
    AcDbEntity * pEnt, 
    AcDbObjectId otherId, 
    Adesk::Boolean swapXdata, 
    Adesk::Boolean swapExtDict
);
Parameters 
Description 
pEnt 
The entity. 
otherId 
ID of the prototype entity. 
swapXdata 
Input true to swap extended entity data. 
swapExtDictionary 
Input true to swap extension dictionary. 
Returns

Returns Acad::eOk on success.

Remarks

Saving back involves the following steps:

  • Clone objects to the original database using wblockCloneObjects().
  • Swap Ids for all old and new copies using AcDbObject::swapIdWith().
  • Swap all references using AcDbObject::swapReferences().
  • Erase old copies.

There are two virtual AcDbObject methods which could be used by custom objects to participate in the process: subSwapIdWith() and swapReferences(). The swapIdWith method lets you control swapping Xdata and Extension dictionaries. By default, they are not swapped.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].