cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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