Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Parameter names in UI_OUTFIELD

Bruce
Advisor
Is there a way to use the Name portion of a parameter in the UI_OUTFIELD command, instead of repeating it in quotes?

E.g. say I have a parameter 'p_something' with the name / description "Something"

Now when I use the UI_OUTFIELD command, I need to type 'UI_OUTFIELD "Something", x, y,...'

Can I do something like 'UI_OUTFIELD' NAME(p_something), x, y,...' ?

Cheers
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
Barry Kelly
Moderator
Sure just use ...
UI_OUTFIELD p_something
This will give you the current value of that parameter but as fixed outfield text.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Bruce
Advisor
Thanks Barry.

I had already figured this one out - but that's not what I'm after. I'm after the "Name" part of the parameter, not the Value.

E.g. if the parameter was 'A', I would want to display "Dimension 1"
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
Anonymous
Not applicable
No, you can not. Possible additional text for the parameter type Boolean. Eg. So.
UI_INFIELD {3} ALL_txt, 10, 10, 100, 14,
     7, "", 2, 1, !!! or type 5
     0, 0, 0, 0,
     1, "Text_1" 0,
     2, "Text_2" 1
Or it is necessary to use arrays of values for the text part.
DIM stTEXTP []! Different text depending on the parameter Progr
   IF Progr = "ArchiCAD" THEN
   stTEXTP [1]= "Text_1"
ELSE
   stTEXTP [1]= "Text_2"
ENDIF
     UI_OUTFIELD stTEXTP [1], 10, 30, 111, 14
All the same you need to copy (Ctrl + C) the text part of parameter.
Bruce
Advisor
Yeah, I thought so. Thanks all the same.
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