2025-03-21 07:14 AM
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"
}
Solved! Go to Solution.
2 weeks ago
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()
2 weeks ago
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()