cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.

Changing value of label via API

Eshanta
Contributor

I am currently trying to create a zone label in which the values are updated programmatically via the API.

 

I've tried the following so far without any success:

 

1) Tried setting the parameter value of the label's display text using the API. While this worked for other GDL object types, it did not work for labels.

 

2)Tried ACAPI_Element_GetPropertyDefinitions to get the property definitions first, so that I can somehow set the value later. However, I get null value in property definitions for labels. It works fine for other objects like walls.

Is it possible to update text in labels programmatically  ?

 

Thanks.

11 REPLIES 11
Eshanta
Contributor

Hello,
Yes, I managed to get all of my user defined zone parameters using ACAPI_Element_GetMemo.
I tried it on AC24.

Interesting. I guess I'll try it on a previous version to see whether I'm messing things up somewhere or if it's an issue with AC25.

Thanks for the info