GDL
About building parametric objects with GDL.

[SOLVED] How to Access Custom Settings of ModelViewOption

Kenta Otsuka
Newcomer
Hi!

I'm new to ArchiCAD API (about 3month).
Now I have a problem.
I learn that we can add Custom data to ModelViewOption dialog
by specially set GDL object.
I can display load it and display on the ModelViewOption dialog but
I can't find the way to access them through API.
Because my English is poor I took a screen shot.

Thank you for your help.

ModelViewOptiondlg.png
2 REPLIES 2
ReignBough
Enthusiast
I haven't tried this, but it seems like you are looking for APIEnv_GetViewOptionsID. It will return API_ViewOptions. And based on its structure, what you need is API_ViewOptions->modelViewOpt->gdlOptions->params.
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Kenta Otsuka
Newcomer
TO: ReignBough

Thank you for your Comment.
I can do that.
I found that my custom data is added to the tail element of modelViewOpt->gdlOptions

Thank you for your help.
ReignBough wrote:
I haven't tried this, but it seems like you are looking for APIEnv_GetViewOptionsID. It will return API_ViewOptions. And based on its structure, what you need is API_ViewOptions->modelViewOpt->gdlOptions->params.