API Reference > OdDg Classes > OdDgElement Class > OdDgElement Methods > OdDgElement::wblockClone Method
OdDgElement::wblockClone Method
Syntax
C++
virtual OdDgElementPtr wblockClone(OdDgIdMapping& ownerIdMap) const;
Parameters 
Description 
OdDgIdMapping& ownerIdMap 
[in/out] Owner's ID map. 

Performs a shallow clone of this object. 

 

Returns a SmartPointer to the newly created clone, and adds a record to the specified ID map. 

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 OdDgDatabase::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.

subDeepClone()

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