License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

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.