Home › Forums › Problems and solutions in GDL › Others › Custom MVO INFIELD
- This topic has 3 replies, 2 voices, and was last updated 8 years, 1 month ago by
Bruce Walker.
-
AuthorPosts
-
-
May 29, 2017 at 23:51 #3281
Bruce Walker
ParticipantI 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?
Attachments:
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb -
May 29, 2017 at 23:52 #3283
Bruce Walker
ParticipantCode:
“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 = 0UI_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, 0hf_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 + 1hf_y = hf_menu_h + 5
UI_SEPARATOR 0, hf_y, ui_max_x, hf_yRETURN
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb -
May 31, 2017 at 12:56 #3286
Pavel Čapek
ParticipantHello Bruce,
I beleve, you also need to define values in parameters script.values “gs_ui_current_page” 1, 2
Pavel Čapek
BIM Project -
May 31, 2017 at 21:22 #3287
Bruce Walker
ParticipantThat’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.
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb
-
-
AuthorPosts
- The forum ‘Others’ is closed to new topics and replies.