Close

Relief for ODA Team in Ukraine

Learn more
ODA BimRv SDK
Export to IFC Using External Property Definitions

This article describes how to export from BimRv to the IFC format using external property set and quantity definitions.

Calculation and creation of common properties and quantities during export to IFC is implemented using the IFC PSDQTO module. So, you need to fill PSDQTO data from external storage, for example, from the buildingSmart official PSD output xml files, which you can find in the IFC SDK archives in Ifc\Data\IFCSDK\PSDQTO\IFC4.

To use XML files in TB_IfcExport, place the property definition XML files in the folder with your binaries. The default path for property set definition files is IFC4PSDQTO\psd and for quantity definition files is IFC4PSDQTO\qto.

To use another path, change the default path by adding export option definitions. The following code sample demonstrates how to define new paths in the BmIfcExportEx application:

OdString szPSDFolder = L"C:\\IFC4PSDQTO\\psd";
OdString szQTOFolder = L"C:\\IFC4PSDQTO\\qto";
exporter->properties()->putAt(L"PSDFolder", OdRxVariantValue(szPSDFolder));
exporter->properties()->putAt(L"QTOFolder", OdRxVariantValue(szQTOFolder));

Also, you need to turn on export for common property sets and quantities:

exporter->properties()->putAt(L"IfcCommonPropSets", OdRxVariantValue(true));
exporter->properties()->putAt(L"BaseQuantities", OdRxVariantValue(true)); 

See Also

Export to IFC

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