Save as IFC using API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-01-10
07:01 AM
- last edited on
‎2022-10-04
04:44 PM
by
Daniel Kassai
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
- Labels:
-
Add-On (C++)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2022-11-04 10:30 AM
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.