GDL
About building parametric objects with GDL.

Make an extra page

Anonymous
Not applicable
Hello everyone,
I am currently struggling with gdl objects more specifically user interface scripting.
I would like to create an extra page in the dialog box. Can anyone help me with that?
5 REPLIES 5
Barry Kelly
Moderator
That depends on how the pages are scripted.
Are you using the Hierarchial Pages?


Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
I have attached a screenshot of the interface script. I have to say that I am really new at this and I am just trying to learn. I felt like I have to mention that in case the answer was really obvious and under my nose the whole time
Barry Kelly
Moderator
Ah, you are trying to edit a Graphisoft object.
Good Luck

Yes it is using Hierarchical pages (the button at the top is active).

However this script is CALLing another - "Kitchen Cabinets UI macro"

If you open that you will see the script you need to edit.
But I don't fully understand it.
Maybe someone else can help.


Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Peter Baksa
Graphisoft
Graphisoft
Normally you'd start a new page by simply writing
UI_PAGE id, -1, "title", ""
(The id's have to be continuous)

In this case "Kitchen Cabinets UI macro" restricts the possible pages, using a command in the parameter script:
values "gs_ui_current_page" get(nsp)
gs_ui_current_page is a special parameter, using VALUES on it limits the possible pages. So you need to modify the macro too if you need to extend it.
Péter Baksa
Software Engineer, Library
Graphisoft SE, Budapest
Barry Kelly
Moderator
Peter wrote:
In this case "Kitchen Cabinets UI macro" restricts the possible pages, using a command in the parameter script:
values "gs_ui_current_page" get(nsp)

Thanks Peter.


Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11