GDL
About building parametric objects with GDL.

UI_PAGE

Duke_Dandungu
Newcomer

I am trying to make objects via GDL Scripting but I am really confused about UI_PAGES.

1. How do you create pages?

2. How do you link the elements or (Subtopics) to each page?

 

Thanks.

 

Daniel

4 REPLIES 4
Joachim Suehlo
Advisor

Look at https://gdl.Graphisoft.com/tips-and-tricks

There are some topics about UI_Pages and navigation.
And some basics here https://www.b-prisma.de/ueber-gdl/gdl-blog/user-interface-in-gdl-objekten/ (use Google translate)

Joachim Suehlo . AC12-27 . MAC OSX 13.5 . WIN11
GDL object creation: b-prisma.de
Jorge_Arreguin
Booster

Just copy paste this text in your interface and see whats happend and then analize it

 

ui_dialog `Sample page jorge_arreguin@yahoo.com `
UI_STYLE 0,0

UI_PAGE 1
ui_outfield `dim A`, 5, 25, 120, 15
ui_infield "A", 100, 25, 40, 19
ui_outfield `dim B`, 180,25, 70, 15
ui_infield "B", 260, 25, 35, 19
ui_outfield `Z dim`, 330, 25, 60, 15
ui_infield "ZZYZX", 400, 25, 40, 19
UI_BUTTON UI_NEXT, "NEXT", 384, 240, 60, 15
ui_outfield `Sample page by Jorge Arreguin`, 100, 100, 250, 15

UI_PAGE 2
ui_outfield `this is the page number two`, 65, 100, 250, 15
UI_BUTTON UI_PREV, "PREVIEW", 5, 240, 60, 15
Jim Allen
Expert

That's really helpful - thanks!

 

I spent a little time modifying a custom UI recently and the documentation is not designed for complete novices to dip into.

It's not massively cognitively demanding, but does require quite a bit of application and effort to understand.

I was considering writing a template to help GDL idiots like me with positioning.

Archicad 27 UKI | OS X 12.7.1 Monterey

you are welcome 🙂