Got a minute? We appreciate your feedback:

Graphisoft Learn survey
GDL
About building parametric objects with GDL.

Check box for integer parameter

Bruce
Expert

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
http://www.brucepwalker.com
https://www.mindmeister.com/65450406
-- since v8.1 --
AC26 5002 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

Lukas Oelmueller
Enthusiast

UI_INFIELD{4} with a picture? see files

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 macOS Sonoma / AC27UKI (most recent builds)

Yves
Enthusiast

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
Expert

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
http://www.brucepwalker.com
https://www.mindmeister.com/65450406
-- since v8.1 --
AC26 5002 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!