[SOLVED] How to Access Custom Settings of ModelViewOption
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-06-11
08:23 AM
- last edited on
2023-05-23
04:37 PM
by
Rubia Torres
2015-06-11
08:23 AM
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.
Labels:
- Labels:
-
Library (GDL)
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-06-17 04:30 AM
2015-06-17
04:30 AM
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
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2015-06-17 07:51 AM
2015-06-17
07:51 AM
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.
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.