Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
OdIfc::ModelOps::cloneWithSpatialStructure Function
Syntax
C++
OdDAIObjectId IFCCORE_EXPORT cloneWithSpatialStructure(const OdDAIObjectId& productToClone, bool toExistingSpatialStructure = false);

Clones an IFC entity of IfcBuildingElement type and its nested content to the model.

Parameters
Description
productToClone
[in] An object identifier of the entity (the STEP ID is stored in the OdDbHandle).
toExistingSpatialStructure
[in] A value of the flag that defines whether the cloned entity is appended to the existing structure (true) or is cloned with its structure (false).

The object identifier of the cloned entity or the source entity identifier otherwise.

File: IfcModelOps.h 

Namespace: OdIfc::ModelOps 

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