DATAKIT SDK  V2026.3
Ifcw::WriteOptions Class Reference

This class provides several options to tune the IFC Writer.
It must be provided to Ifcw::InitWrite method. More...

Public Member Functions

 WriteOptions ()
 Default constructor. More...
 

Data Fields

Dtk_bool buildingTypeRecognition
 
Dtk_bool tessellateExactGeometry
 
int versionIndicator
 

Detailed Description

This class provides several options to tune the IFC Writer.
It must be provided to Ifcw::InitWrite method.

//...
Dtk_string LogFile = L"MyLogFile.log";
Ifcw::WriteOptions IFCOptions;
Dtk_ErrorStatus err = Ifcw::InitWrite( LogFile, NULL, IFCOptions);
//...

Constructor & Destructor Documentation

◆ WriteOptions()

Ifcw::WriteOptions::WriteOptions ( )

Field Documentation

◆ buildingTypeRecognition

Dtk_bool Ifcw::WriteOptions::buildingTypeRecognition

DTK_TRUE : enable building type recognition (deduces if an element is an IFCWALL, IFCWINDOW...), DTK_FALSE : disable building type recognition default value is DTK_TRUE.

◆ tessellateExactGeometry

Dtk_bool Ifcw::WriteOptions::tessellateExactGeometry

DTK_TRUE : tessellate exact geometry. Such geometry is only exported in version IFC4. DTK_FALSE : export exact geometry as is (only in IFC4). default value is DTK_FALSE.

◆ versionIndicator

int Ifcw::WriteOptions::versionIndicator

Int representing IFC version to use : 0 ( default ) = IFC2x3; 1 = IFC4 default value is 1 (IFC4).

Ifcw::InitWrite
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, const WriteOptions &inOptions, ProjectInformation *inProjectInfo=nullptr)
Initialize the Ifc Writer and the IFC version you want to write
Ifcw::WriteOptions::versionIndicator
int versionIndicator
Definition: IFCWriter.h:38
DTK_TRUE
#define DTK_TRUE
Definition: define.h:726
Ifcw::WriteOptions::buildingTypeRecognition
Dtk_bool buildingTypeRecognition
Definition: IFCWriter.h:41
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:53
DTK_FALSE
#define DTK_FALSE
Definition: define.h:727
Ifcw::WriteOptions
This class provides several options to tune the IFC Writer. It must be provided to Ifcw::InitWrite me...
Definition: IFCWriter.h:29
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Ifcw::WriteOptions::tessellateExactGeometry
Dtk_bool tessellateExactGeometry
Definition: IFCWriter.h:44