cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Streamline your workflows and master BIM coordination! Program starts April 28!

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

How can I release the restrictions ^DE ^DI ^DD ^DT

nishida_jp
Booster

In ArchiCAD 27 API/C++,

the following menu in the grc file imposes restrictions on commands:
'STR#' ID_ADDON_MENU04 "Menu04" {
/* [ ] */ "Construction Support Tool"
/* [ 1] */ "Weight Calculation ^E3 ^ES ^DE ^DI ^DD ^DT ^10004"
}

How can I release the restrictions ^DE ^DI ^DD ^DT using a button in a modeless dialog during the execution of this menu?
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
LChen
Graphisoft
Graphisoft

Hi, If you'd control the menu restriction by your C++ code, then I'd suggest you to try the following command:

if (disable)
      itemFlags |= API_MenuItemDisabled;
 else
      itemFlags &= ~API_MenuItemDisabled;

ACAPI_MenuItem_SetMenuItemFlags()

And write enable control code(s) in grc.
HTH.

  

View solution in original post

1 REPLY 1
Solution
LChen
Graphisoft
Graphisoft

Hi, If you'd control the menu restriction by your C++ code, then I'd suggest you to try the following command:

if (disable)
      itemFlags |= API_MenuItemDisabled;
 else
      itemFlags &= ~API_MenuItemDisabled;

ACAPI_MenuItem_SetMenuItemFlags()

And write enable control code(s) in grc.
HTH.