Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDgDatabase::deepCloneObjects Method
Syntax
C++
void deepCloneObjects(const OdDgElementIdArray& objectIds, OdDgElementId ownerId, OdDgIdMapping& idMap, bool deferXlation = false);

Deep clones a set of objects, and appends the clones to the specified in owner object. 

 

Parameters
Description
objectIds
[in] Array of Object IDs of the objects to be cloned.
ownerId
[in] Object ID of owner object.
idMap
[in/out] ID map.
deferXlation
[in] Defer translation.

idMap associates the Object IDs of the original objects with the Object IDs of the newly created clones. 

When cloning objects with different owner IDs, a separate call to this function is required for each ownerId. In this case, all but the final call to this function should be made with deferXlation == true. This defers translation until all objects have been cloned. 

A deep clone is a clone of the specified objects and everything they own.

wblockCloneObjects()

Copyright © 2002-2022. Open Design Alliance All rights reserved.