API Reference > OdDb Classes > OdDbObject Class > OdDbObject Methods > OdDbObject::appendToOwner Method
OdDbObject::appendToOwner Method
Syntax
C++
virtual void appendToOwner(OdDbIdPair& idPair, OdDbObject* pOwnerObject, OdDbIdMapping& idMap);
Parameters 
Description 
OdDbIdPair& idPair 
[in] Original-to-clone ID mapping record for this clone.  
OdDbObject* pOwnerObject 
[in] Pointer to the owner object.  
OdDbIdMapping& idMap 
[in/out] ID mapping object of the cloning operation in progress. 

This function appends this object to the specified owner object during the deep or wblock clone operation. 

 

This callback is called before the IDs are translated in the target database so the implementer should use only methods certainly not traversing hierarchy in the target database. To follow clone's references properly they should be translated using the ID mapping object. 

The default implementation appends this object to OdDbDictionary or throws the eInvalidOwnerObject exception if the owner object is not a kind of dictionary.

subDeepClone() subWblockClone() deepClone() wblockClone()

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