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

Changing one parameter breaks other parameters

Emkave
Booster

Hello. I was trying to implement one algorithm where I am trying to update one particular property of an instance of an object in Archicad environment.

Here exists some rectangular element:

Emkave_0-1732104960413.png

It has following properties:

Emkave_1-1732105057925.png

 

Now, I will try to update only one property (width) to 100...

I use commands in this order:
ACAPI_LibraryPart_OpenParameters(); to open the selected object's properties,

and ACAPI_LibraryPart_ChangeAParameter(), where I pass updated parameters.

then I execute ACAPI_LibraryPart_CloseParameters(); to close the parameters.

 

I do not modify anything else.

 

In the end I have this result:

Emkave_2-1732109266279.png

 

with these properties:

Emkave_3-1732109282108.png

 

As you can see,the width have been changed correctly. Other properties, however, have been corrupted.
Do somebody know why it might happen?

 

Operating system used: Windows 11

0 REPLIES 0

Setup info provided by author