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.
SOLVED!

Add a custom property to an element

tsuyoshimishina
Contributor

Hi experts,
Is there any way to add a custom property to an element using C++ API as of version 24?

I know there is ACAPI_Property_AddProperty() function in the recent versions version 27. But, I need to do the same in version 24.

I am also considering utilizing IFC property (which can be added manually in the settings dialog of an element). In that case, is it possible to add a new custom IFC property to an element using ACAPI_Element_SetIFCAttribute() function?

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
tsuyoshimishina
Contributor

I found a pair of functions appropriate for my purpose (I should have asked about "Adding custom data to an element").
The functions ACAPI_Element_SetUserData() and ACAPI_Element_GetUserData() have been available since AC16, and they are exactly what I needed.

View solution in original post

1 REPLY 1
Solution
tsuyoshimishina
Contributor

I found a pair of functions appropriate for my purpose (I should have asked about "Adding custom data to an element").
The functions ACAPI_Element_SetUserData() and ACAPI_Element_GetUserData() have been available since AC16, and they are exactly what I needed.