We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2022-03-20 10:43 PM
How do I have a check box on the interface when my parameter is an integer, not boolean?
It's a long story, but I have a 2-dimension array: column 1 is the story index, column 2 is 1 or 0 to show or hide. Is there a simple way to display this second column as a check box option, or do I need to create another dummy array as a boolean?
2022-03-21 09:22 AM
2022-03-21 10:36 AM
@Bruce Are you using the default parameter display or the Parameter Script to set the values?
2022-03-21 12:33 PM - last edited on 2022-03-21 01:04 PM by Laszlo Nagy
Hi,
two other possibilities
!!!!Master or Parameter Script
VALUES{2} "column_2" 0,"No",
1,"Yes"
!!!!!!!Interface script
UI_INFIELD{3} "column_2", 10, 10, 50, 15,
8, "", 2, 1, 0, 0, 0, 0,
0, "No",0,
1, "Yes", 1
UI_PICT_RADIOBUTTON "column_2", 0, "No",
"", 10, 50, 50, 15
UI_PICT_RADIOBUTTON "column_2", 1, "Yes",
"", 10, 70, 50, 15
2022-03-21 11:14 PM
Thanks guys. I can't use the parameter script to set the values, as column 1 of the array isn't boolean.
I ended up creating another proxy array of boolean type, that copies its values into the first array when modified.