BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Archicad C++ API
About Archicad add-on development using the C++ API.

Change GDL param (MVO)

Andor Kocsis
Contributor

Looking for the method, how to update gdl parameters in every model view options.

 

Found APIEnv_​GetViewOptionsID, and on its output, viewOptions -> modelViewOpt -> gdlOptions[] -> params[] gives me params. I iterate through every gdlOptions, and update some param with new values. Then calling on APIEnv_ChangeViewOptionsID, and a not-so-ideal thing happens. A new mvo set creates with empty name (""), and only that one mvo stores my values. The existing mvos do not get updated (to be precise, I find params with default values, and not with those values, I set via params[]).

 

 

Looking for some wisdom:

-1. how to avoid creating a new mvo with empty name, and

-2. how to update existing mvos instead ?

 

Thx,

0 REPLIES 0
Learn and get certified!