Custom MVO INFIELD

Home Forums Problems and solutions in GDL Others Custom MVO INFIELD

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  Bruce Walker 3 months, 3 weeks ago.

  • Author
    Posts
  • #3281

    Bruce Walker
    Participant

    I have created a custom MVO, which works mostly as intended, but for some reason, the INFIELD method is not working. No matter what type of method I select, it will just give me a white box with the parameter value.

    I figure there must be a global setting I’m missing, because I copied the code out of LibraryGlobals13 (in this case, for the door swing type). Works fine in LibraryGlobals13 – but just gives me a white infield box in my MVO.

    What am I missing?

    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

  • #3283

    Bruce Walker
    Participant

    Code:

    “Header fields”: ! (hf)

    hf_menu_w = 280
    hf_menu_h = 25
    hf_button_h = 21
    hf_button_w = 32
    hf_gap = 1
    hf_x = 0
    hf_y = 0

    UI_STYLE 0, 1
    UI_INFIELD{3} “gs_ui_current_page”, hf_x, hf_y, hf_menu_w, hf_menu_h,
    2, “”, 2, 1,
    0, 0, 0, 0,
    1, “Site”, 1,
    2, “Cabinets”, 2
    UI_STYLE 0, 0

    hf_x = hf_menu_w + hf_gap * 2
    hf_y = 2
    UI_BUTTON UI_PREV, “<<“, hf_x, hf_y, hf_button_w, hf_button_h, gs_ui_current_page – 1
    hf_x = hf_x + hf_button_w + hf_gap
    UI_BUTTON UI_NEXT, “>>”, hf_x, hf_y, hf_button_w, hf_button_h, gs_ui_current_page + 1

    hf_y = hf_menu_h + 5
    UI_SEPARATOR 0, hf_y, ui_max_x, hf_y

    RETURN

    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

  • #3286

    Pavel Čapek
    Participant

    Hello Bruce,
    I beleve, you also need to define values in parameters script.

    values “gs_ui_current_page” 1, 2

    Pavel Čapek
    senior developer
    BIM Project

  • #3287

    Bruce Walker
    Participant

    That’s it – that’s what I was missing. I had forgotten that one needed to define values for this to work in the interface script. Thanks Pavel, much appreciated.

    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.