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

Show Values{2} text options in GUI

Nader Belal
Mentor
Hi there,

Is there a way to show the text values of Values{2} in the GUI instead of there numerical values ?

Thank you in advance
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Palawat
Advocate
I'm thinking of "ui_custom_popup_infield". It can show different contents in UI, one for pop-up and another in the field. But the parameter should be string (not integer) and it cannot have value list (values{2}).

https://gdl.graphisoft.com/tips-and-tricks/new-custom-popup-infield
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

3 REPLIES 3
Palawat
Advocate
Not sure if this is what you're looking for ;

! Parameter Script
values{2} "option1" 1, "Option_txt1", 2, "Option_txt2", 3, "Option_txt3"
! 2D Script
text2 0, 0, PARVALUE_DESCRIPTION("option1")
HTH.
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs
Nader Belal
Mentor
No, not this.

When you use ui_infield for a parameter that have it's values defined by values{2}, the fields will only show it's integer numeric values. while the pop-up will show it's text values.

I think someone here said the way to achieve this, but can't find the thread
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
Solution
Palawat
Advocate
I'm thinking of "ui_custom_popup_infield". It can show different contents in UI, one for pop-up and another in the field. But the parameter should be string (not integer) and it cannot have value list (values{2}).

https://gdl.graphisoft.com/tips-and-tricks/new-custom-popup-infield
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs