Custom drop-down menu loads into all workspaces EXCEPT current workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a custom partial CUIX that is loaded via the ACADDOC.lsp file. The toolbars and ribbon tab will load but the drop-down menu never loads into the current workspace. If I flick into a different workspace I discover that the drop-down menu is there. In fact, it is available in ALL workspaces EXCEPT the current one at the time of loading.
For the current workspace, I have to go into CUI, Customise Workspace, and ensure the menu is ticked. Sometimes it is already ticked and I have to clear it, then reselect. OK to the CUI dialogue and the drop-down menu will appear. I only have to do this once but multiple users have the same problem.
If I unload the custom CUIX and reload it using MENULOAD then the drop-down menu will load correctly into the current and other workspaces.
My ACADDOC file calls another Lisp file which does the actual loading of the partial CUIX and various custom Lisp routines.
Here's the bit that loads the CUIX :
;; local variable "support_path" stores the path to the CUIX file on a network drive
(if (findfile (strcat support_path "EngCon_Tools.cuix"))
(if (= (menugroup "EngCon_Tools") nil)
(command "_cuiload" (strcat support_path "EngCon_Tools.cuix"))
(princ "\nEngCon_Tools menu already loaded OK\n")
)
;; else display error message box
(alert "Unable to locate EngCon_Tools.cuix")
) ;; end if
This has been happening at least since v2019 and on our current v2021. AutoCAD Map 3D and Civil 3D.
Any ideas how I can make the drop-down menu appear when the CUIX file is loaded?