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.

How do I modify the value of a property

luna
Contributor

Hi


I created a property for an element using the ACAPI_Element_SetProperty(guid, property) method and assigned a value to it using the following method.

modify2.png

 

Next I use the following method to add the properties created above to the other elements.

modify1.png

 

The problem is that only the first element has a default value, and the element with ACAPI_ElementList_AddProperty(property.definition, guidArrary) has no default value.

 

I tried it out using the ACAPI_ElementList_ModifyPropertyValue method, as shown below.

modify3.png

 

My question is how do I change the value of an attribute of an element. Please give me some help with this.

thank you.

4 REPLIES 4
luna
Contributor

P.S.


This is a property added for other elements and does not have the value I set.

modify4.png

modify5.png

Hi, is anybody there?

 

How can I modify a certain property value of an element?

I used ACAPI_ElementList_ModifyPropertyValue but it didn't work.

 

Please help me!!!

 

Lk__
Participant

Might be a little late, but for a single element try using ACAPI_Element_SetProperty

Yes, I am using it.

 

Thank you!

🙂