We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-04-12 05:29 PM
How do I use UI_CUSTOM_POPUP_INFIELD{2} for Array Parameters?
With a non Array Parameter the following example works well.
UI_CUSTOM_POPUP_INFIELD "best_1", 81, dy, 40, 24,
0, 0, 1, "",
"A",
"B",
"C"
But the same syntax does not work with an array parameter:
UI_CUSTOM_POPUP_INFIELD{2} best[i], 126, dy, 40, 24,
0, 0, 1, "",
"A",
"B",
"C"
I cannot use VALUES in the Parameter Script, because every Array Parameter Index must have a different Value-List.
Solved! Go to Solution.
2023-04-13 04:32 PM
The manual is confusing about this command, this is what you need:
UI_CUSTOM_POPUP_INFIELD{2} arrayPar[i], 0, 0, 200, 30,
1, 1, 1, "", ! storeHiddenId, treeDepth, groupingMethod, selectedValDescription
"id1", "value1",
"id2", "value2"
"id..." is the hidden id, which has to be unique among all options.
id and value has to be the same type as the parameter.
The parameter will contain the selected hidden ID.
2023-04-19 08:12 AM
What do you mean by same values?
The id is not shown, the value is shown. You can make the values equal the ids.
2023-04-13 04:32 PM
The manual is confusing about this command, this is what you need:
UI_CUSTOM_POPUP_INFIELD{2} arrayPar[i], 0, 0, 200, 30,
1, 1, 1, "", ! storeHiddenId, treeDepth, groupingMethod, selectedValDescription
"id1", "value1",
"id2", "value2"
"id..." is the hidden id, which has to be unique among all options.
id and value has to be the same type as the parameter.
The parameter will contain the selected hidden ID.
2023-04-13 04:55 PM
Thank You Peter, that works well.
Is it also possible to have the same values shown in the popup
in the infield as well?
2023-04-19 08:12 AM
What do you mean by same values?
The id is not shown, the value is shown. You can make the values equal the ids.
2023-04-19 09:55 AM
The first time I tried it, it did not work, that the IDs and the values are equal.
Now it works, thank you for following up.