License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

C++\Archi27 API How To Loop Addoon Gloval Values In Menu when Menu Exist

nishida_jp
Booster

visual studio c++2017
Archi27 API 
Programing

 

struct GlovalValues;

 

static GSErrCode MenuCommandHandler (const API_MenuParams *menuParams)
{
switch (menuParams->menuItemRef.menuResID) {
case ID_ADDON_MENU01:
   // addon programing By globalValues

  break;

return 0;
}

 

I select menu on ID_ADDON_MENU01.
after ID_ADDON_MENU01

but GlovalValues initialized on next select menu ;

 

how to continue data of GlovalValues on next menu pushed;

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
LChen
Graphisoft
Graphisoft

Hi,

I'd like suggest you to use ACAPI_SetPreferences() and ACAPI_GetPreferences() function to keep and restore your own data in your project file. Please check the details in API Doc.

HTH.

View solution in original post

1 REPLY 1
Solution
LChen
Graphisoft
Graphisoft

Hi,

I'd like suggest you to use ACAPI_SetPreferences() and ACAPI_GetPreferences() function to keep and restore your own data in your project file. Please check the details in API Doc.

HTH.