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

UI_RADIOBUTTON ignoring second array index

Denny Wong
Participant

Hi All,

 

I am trying to use UI_RADIOBUTTON with a 2 dimensional array parameter. However if I ask for _param[i][j], it will always store the value in [i][i] instead, making this command useful in the diagonal matrix only.

 

I hope I am not missing something obvious - but this appears to be a bug to me...?

 

Many thanks in advance, I'll love to hear your thoughts.

 

UI_RADIOBUTTON stores values into [2][2], not [2][3] as specifiedUI_RADIOBUTTON stores values into [2][2], not [2][3] as specified

 

Tested in AC23 and AC25, latest patches.

11 REPLIES 11

@Piotr Dobrowolski wrote:

UI_RADIOBUTTON integerArray[2][1], 515, `test Value21`, 10, 160, 100, 20

 


I think you meant the above. 😄

 

This basically proves my point: it will assign any value of [i][j] into [i][i].

So here integerArray[1][1] and integerArray[1][2] both went to integerArray[1][1].

Screenshot 2021-09-28 at 14.38.42.png

Screenshot 2021-09-28 at 14.38.12.png

 

 

Screenshot 2021-09-28 at 14.42.36.png

Solution
Peter Baksa
Graphisoft
Graphisoft

Yes, this is a bug, thank you for reporting. It will be fixed in the next version (AC26).

 

Péter Baksa
Software Engineer, Library
Graphisoft SE, Budapest