cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
nishida_jp
Booster

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

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 Solution

Accepted Solutions
Hiromichi Shinkawa
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.

  

Go to post

1 Reply 1
Hiromichi Shinkawa
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.

  

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!