As usual for ODA products, before starting to use IFC SDK functionality, you need to initialize it.
To initialize IFC SDK, use the odIfcInitialize(); function which is declared in the
Include/IfcCore.h header file.
This function loads the appropriate modules that provide IFC SDK functionality.
It accepts two parameters:
bInitIfcGeomResource — A flag that determines whether geometry functionality should be initialized as well.
This flag is required for working with geometry objects.
modelerType — Determines which type of geometry is supported. By default, facet geometry is supported.
To clear up the environment before finishing an IFC SDK based application, call the odIfcUninitialize() function.
If you called the odrxInitialize() function previously,
don't forget to call the odrxUninitialize() function.
Note that you have to keep the calling sequence when de-initializing IFC functionality: