parvalue_​​description

This topic contains 2 replies, has 2 voices, and was last updated by  Bruce Walker 1 year, 5 months ago.

  • Author
    Posts
  • #2356

    Bruce Walker
    Participant

    I found this command in the GDL reference guide, but can’t figure out what it does. There are no examples given, and the only other reference Google provided was a page in German that wouldn’t translate.

    Does anyone have an example of what this actually does? Thanks.

    Project Architect
    http://www.cotteeparker.com.au/

    AC20 AUS 5025 Full | Win 7 Pro 64 | Intel i7-5820K 3.30GHz | 64 Gb RAM
    NVIDIA Quadro K2200 8Mb | 2x Philips 272P4 2560x1440

  • #2357

    Dominika Bobály
    Keymaster

    This function can be used to display the description text assigned to the actual value of any integer parameter with VALUES{2} list.
    It works on the interface, or for 2D/3D texts.
    For example, you have an object with the following parameter and values in paramscript:

    values{2} "iExampleParam" 1, 'Description Text 1',
    			2, 'Description Text 2'

    If you would like to display the description text of the selected value on the UI script, do this:

    stDescription = PARVALUE_DESCRIPTION ("iExampleParam")
    ui_outfield stDescription, 10, 10, 180, 15

    On the attached picture, the chosen value is 2, so the description text belongs to value 2.
    The command works in 2D and 3D as well.

    Dominika Bobály
    Library Developer, Library Team
    GRAPHISOFT SE

  • #2359

    Bruce Walker
    Participant

    Excellent. Makes sense now. Thanks Dominika

    Project Architect
    http://www.cotteeparker.com.au/

    AC20 AUS 5025 Full | Win 7 Pro 64 | Intel i7-5820K 3.30GHz | 64 Gb RAM
    NVIDIA Quadro K2200 8Mb | 2x Philips 272P4 2560x1440

You must be logged in to reply to this topic.