We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.

Check box for integer parameter

Bruce
Advisor

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?

Bruce Walker
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
4 REPLIES 4

UI_INFIELD{4} with a picture? see files


oui_non.jpg
Mac OSX - up to date

GER Archicad Full, Up to date
DGSketcher
Legend

@Bruce Are you using the default parameter display or the Parameter Script to set the values?

Apple iMac Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)
Yves
Advocate

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

 

 

Yves Houssier
Belgium
Archicad 19 -> 24
iMac - Mac Os 10,13
Bruce
Advisor

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.

Bruce Walker
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb