License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
GDL
About building parametric objects with GDL.
SOLVED!

INFIELD{2} not displaying VALUES{2} properly

Bruce
Advisor
I have defined a 2-dimension array parameter, of integer type, with a VALUES{2} command. It displays fine in the parameter list, but in the interface, I only get the integer displayed, not the description. What am I missing?

I think I've encountered this before, but I can't remember what I did to solve it (apart from placing a dummy OUTFIELD over the top of the infields...a bad solution).

Parameter array values:

Interface result:
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
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Palawat
Advocate
Let's say that your parameter is paramName, try this ;

! Master Script
dim paramNameSt[]
paramNameSt[1] = "Room Name"
paramNameSt[2] = "Room Number"
paramNameSt[3] = "Room Category"
paramNameSt[4] = "Room Category Code"
paramNameSt[5] = "Room Abbreviation"
paramNameSt[6] = "Room Area"

dim paramNameInt[]
paramNameInt[1] = 1
paramNameInt[2] = 2
paramNameInt[3] = 3
paramNameInt[4] = 4
paramNameInt[5] = 5
paramNameInt[6] = 6

values{2} "paramName", paramNameInt, paramNameSt
! UI Script
ui_infield{3}	paramName[1][1], 10, 10, 200, 20,
				8, "",
				vardim1(paramNameInt),
				1, 0, 0, 0, 0,
				paramNameInt, paramNameSt, paramNameInt
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs

View solution in original post

2 REPLIES 2
Solution
Palawat
Advocate
Let's say that your parameter is paramName, try this ;

! Master Script
dim paramNameSt[]
paramNameSt[1] = "Room Name"
paramNameSt[2] = "Room Number"
paramNameSt[3] = "Room Category"
paramNameSt[4] = "Room Category Code"
paramNameSt[5] = "Room Abbreviation"
paramNameSt[6] = "Room Area"

dim paramNameInt[]
paramNameInt[1] = 1
paramNameInt[2] = 2
paramNameInt[3] = 3
paramNameInt[4] = 4
paramNameInt[5] = 5
paramNameInt[6] = 6

values{2} "paramName", paramNameInt, paramNameSt
! UI Script
ui_infield{3}	paramName[1][1], 10, 10, 200, 20,
				8, "",
				vardim1(paramNameInt),
				1, 0, 0, 0, 0,
				paramNameInt, paramNameSt, paramNameInt
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs
Bruce
Advisor
That did the trick! Thanks Palawat.
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