We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.

Save as IFC using API

Hoa Tu
Newcomer
I am developing an API to export to IFC file.

I understand that I can use the function: [ACAPI_Automate(APIDo_SaveID, &fsp, &pars_ifc);] and set the file type to APIFType_IfcFile.

However, I am having difficulty in selecting another translator instead of the default one.

Any idea or suggestion will be appreciated.

Best Regards,
Hoa
1 REPLY 1
dradomtsev
Contributor

Hi Hoa,
You can get a list of available IFC translators with ACAPI_IFC_GetIFCExportTranslatorsList ( GS::Array<API_IFCTranslatorIdentifier>& ifcExportTranslators ) where API_IFCTranslatorIdentifier is a structure that has GS::UniString name field so you can use it for filtering an array of translators.
Also starting from AC 26 you can call ACAPI_IFC_InvokeIFCDifferenceExportSettingsDlg() dialog where you can choose IFC translator via UI.

Regards,
Dmytro.