2012-09-07 07:07 AM - last edited on 2023-08-02 05:02 PM by Doreena Deng
2012-09-07 10:44 AM
GDefina wrote:That's standard behaviour as far as I know. I don't know of a method to keep the menu enabled when no project is open. You want to be careful even if you find a way because most API commands won't function without an open project.
Hi, my add on menu is disabled after a file close.
I added a notification handler to check the menu on file close and it reports the menu as enabled.
How can I have my add-on menu enabled even when there is no file open, please?
2012-09-07 10:56 AM
2012-09-08 12:31 PM
2012-09-08 12:37 PM
GDefina wrote:Yes. You can append codes to menu resources to specify when the menu is enabled, e.g. if the menu should be enabled when something is selected:
When the project is displaying something other than the floor plan the add-on menu is disabled. Is there a mechanism to have the menu visible regardless of what is being viewed?
'STR#' 32500 "My menu" { /*[ 1]*/ "My Item…^S" }There is a code for every drawing/window type too. You can find an example and a full list of codes in the Required Resources section of the API documentation.
2012-09-08 12:39 PM