Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
odIfcInitialize Function
Syntax
C++
IFCCORE_EXPORT OdResult odIfcInitialize(bool initCDA = true, bool initIfcGeomResource = true, ModelerType modelerType = kDefaultModeler);

Initializes IFC SDK functionality.

Parameters
Description
initCDA
[in] A flag that determines whether Common Data Access (CDA) functionality should be provided for IFC data.
initIfcGeomResource
[in] A flag that determines whether geometry resources are initialized as well (if equal to true) or not (if equal to false).
modelerType
[in] A type of modeler that should be used for geometry creation.

eOk if IFC SDK was successfully initialized; otherwise, the function returns an appropriate error code.

The function checks whether all needed modules are loaded and loads them if they are not. If at least one of the necessary modules is not loaded, the function returns the eNullPtr error code. It the bInitIfcGeomResource parameter value is equal to false, the IFC geometry library is unavailable, therefore the model cannot be visualized. In this mode only data management functionality is available.

File: IfcCore.h

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