API Reference > OdDb Classes > OdDbObject Class > OdDbObject Methods > OdDbObject::wblockClone Method
OdDbObject::wblockClone Method
Syntax
C++
ODRX_SEALED_VIRTUAL OdDbObjectPtr wblockClone(OdDbIdMapping& idMap, OdDbObject* pOwner, bool bPrimary = true) const;
Parameters 
Description 
OdDbIdMapping& idMap 
[in/out] Object ID mapping object.  
OdDbObject* pOwner 
[in] Pointer to the owner object. 

Performs a shallow clone of this object. 

 

Returns a SmartPointer to the newly created clone, and adds a record to the specified ID mapping object. If the cloning operation fails, a null SmartPointer is returned. 

A shallow clone is a clone of only this object. 

This function should not be called by client code; use OdDbDatabase::wblockCloneObjects() instead. 

The default implementation of this function calls subWblockClone() for all objects hard-referenced by this object. This function can be overridden in custom classes.

subWblockClone() deepClone() appendToOwner()

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