Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
OdIfc::Utils::getDefaultRepresentationContextsSelection Function
Syntax
C++
OdDAIObjectIds IFCCORE_EXPORT getDefaultRepresentationContextsSelection(const OdIfcFile * pIfcFile, bool onlyBody = true);

Retrieves identifiers (represented with the OdDAIObjectIds object) of default IfcGeometricRepresentationContext instances, which are necessary to get the geometrical representation of a model of the specified IFC file.

Parameters
Description
pIfcFile
[in] A raw pointer to an OdIfcFile object that keeps the IFC model.
onlyBody
[in] A flag that determines that only sub-contexts with the "Body" identifiers are selected (if it is equal to true).

An array of OdDAIObjectId instances, which contain identifiers that refer to geometric representation context objects; if nothing was selected, the method returns an empty array.

File: IfcUtils.h 

Namespace: OdIfc::Utils 

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