cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Martin Walter
Enthusiast

enable / disable menu items with function

I would like to enable/disable menu items by a function.

some examples where I need this:
1: only if there is a window or door selected a menu item shall be enabled
2: only if username and password are filled in my settings dialog the other menu items shall be enabled

How is this possible?
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD
1 Solution

Accepted Solutions
Martin Walter
Enthusiast
Finally I solved it by returning APIAddon_Preload from CheckEnvironment().
Then Initialize() is called at the Start of Archicad.
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD

Go to post

4 Replies 4
The status of menu items can be managed using ACAPI_Interface with APIIo_SetMenuItemFlagsID.
Ralph Wessel BArch
Central Innovation
Martin Walter
Enthusiast
The function works, but it's not clear when to call it.

I want some menu items to be enabled/disabled from program start.
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD
Martin Walter
Enthusiast
Finally I solved it by returning APIAddon_Preload from CheckEnvironment().
Then Initialize() is called at the Start of Archicad.
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD
dushyant
Enthusiast

Why did you return APIAddon_Preload from CheckEnvironment() instead of APIAddon_Normal?

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!