CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Functions
OdIfc::Utils Namespace Reference

Functions

bool IFCCORE_EXPORT assignGlobalId (OdIfcEntity *pInst)
 
OdDAIObjectIds IFCCORE_EXPORT getDefaultRepresentationContextsSelection (const OdIfcFile *pIfcFile, bool onlyBody=true)
 
OdDAIObjectIds IFCCORE_EXPORT getAllRepresentationContexts (const OdIfcFile *pIfcFile)
 

Detailed Description

Contains declarations related to working with IFC files content.

Function Documentation

◆ assignGlobalId()

bool IFCCORE_EXPORT OdIfc::Utils::assignGlobalId ( OdIfcEntity pInst)

Assigns a generated global identifier to the "GlobalId" attribute of an entity derived from an IfcRoot object.

Parameters
pInst[in] A raw pointer to the IFC entity instance.
Returns
true if the attribute "GlobalId" was successfully assigned; otherwise the method returns false.

◆ getAllRepresentationContexts()

OdDAIObjectIds IFCCORE_EXPORT OdIfc::Utils::getAllRepresentationContexts ( const OdIfcFile pIfcFile)

Retrieves identifiers (represented with the <link OdDAIObjectIds, OdDAIObjectIds> object) of all IfcGeometricRepresentationContext instances in a model of the specified IFC file.

Parameters
pIfcFile[in] A raw pointer to an <link OdIfcFile, OdIfcFile> object that keeps the IFC model.
Returns
An <link OdDAIObjectIds, array of OdDAIObjectId> instances, which contain identifiers that refer to geometric representation context objects; if nothing was selected, the method returns an empty array.

◆ getDefaultRepresentationContextsSelection()

OdDAIObjectIds IFCCORE_EXPORT OdIfc::Utils::getDefaultRepresentationContextsSelection ( const OdIfcFile pIfcFile,
bool  onlyBody = true 
)

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

Parameters
pIfcFile[in] A raw pointer to an <link OdIfcFile, 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).
Returns
An <link OdDAIObjectIds, array of OdDAIObjectId> instances, which contain identifiers that refer to geometric representation context objects; if nothing was selected, the method returns an empty array.