Choose your top Archicad wishes!

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

IFC assignment before an element creation


Good day. I am trying to find a way to assign IFC parameters to an element that I am inserting from a web app to the AC environment.
The only way so far I found is to create an element and assign the IFC parameters right through a code. This works but the parameters are not applied to other elements that are placed immediately by the left mouse button.

Is there a way to assign IFC parameters before elements are created? The only function I found so far is ACAPI_Element_SetIFCProperty and ACAPI_Element_SetIFCAttribute. I will be very thankful to those who respond asap!


Operating system used: Windows 10

Laszlo Nagy
Community Admin
Community Admin

I am not an API programmer, but in Archicad you would modify the default settings of a Library Part (Object, Door, WIndow, etc.) so that it includes the IFC Property as well. Then, all Library Parts placed/created with those settings will have the IFC Property assigned.

Maybe you can do something similar in the API, if there is such a command in it.

Loving Archicad since 1995 - Find Archicad Tips at
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27

Setup info provided by author