Automatically load custom menu

Automatically load custom menu

elvis.vs
Participant Participant
1,377 Views
5 Replies
Message 1 of 6

Automatically load custom menu

elvis.vs
Participant
Participant

Hi,

We are having a problem to automatically load a custom menu from a program that we developed in our company. The program works in ObjectARX and to use the program's commands, we create a .cuix file with menus (toolbar, ribbon, etc.)

The problem is that when our customers install the program, the menu does not appear. To start the program, the user calls a "stcadem" command, this command calls a function in a LISP file that loads the menu.

 

When we access the command "menuload" or the customization menu in AutoCAD "cuiload", the cuix file is loaded, but the menu does not appear. The only way to work is to unload the cuix file and load the cuix file using AutoCAD.

 

(command "_.menuload" "st_cadem.cuix")

 

 

0 Likes
1,378 Views
5 Replies
Replies (5)
Message 2 of 6

diagodose2009
Collaborator
Collaborator

If, you work  very hard the file-menu.cuix for toolbar/s icons

then .........you  forget the cuix.

Together can emulate many toolbar/s with icons + commands directly in DCL

 

0 Likes
Message 3 of 6

rgrainer
Collaborator
Collaborator

Are you also using an *mnl file?

0 Likes
Message 4 of 6

Sea-Haven
Mentor
Mentor

A little odd maybe do a check does cuix exist if yes then unload and reload.

 

Have you looked at using a Bundle approach ? This autoloads menus and startup lisps.

 

 

Message 5 of 6

pbejse
Mentor
Mentor

@Sea-Haven wrote:

Have you looked at using a Bundle approach ? This autoloads menus and startup lisps.


I concur ->>> Autodesk Autoloader White Paper 

 

Message 6 of 6

dgorsman
Consultant
Consultant

Visibility of menu content, like most of the UI system, is controlled through the workspace.  Adding a partial CUI through MENULOAD (CUIXLOAD now) doesn't always automatically add UI content e.g. if they have a workspace from the Enterprise CUIx current it cannot be modified. 

 

From memory it's not easy to do that automatically through LISP, so I recommend writing some instructions on how to do this manually using the CUI editor (IMHO something AutoCAD users should know unless they are absolute beginners) as part of your documentation.  The user of your system may include it in a company standard workspace that all their people use, in which case it only needs to be done once; however if everyone has their own personal workspaces individuals may have to add it themselves.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.