Partial CUI & "Context Menu for Default Mode" issue

Partial CUI & "Context Menu for Default Mode" issue

nbawden
Advocate Advocate
338 Views
1 Reply
Message 1 of 2

Partial CUI & "Context Menu for Default Mode" issue

nbawden
Advocate
Advocate

I like to alter the Shortcut Menu "Context Menu for Default Mode" to add various commands (existing AutoCAD commands and a few lisp routines).

 

Previously I had been doing this by simply editing the main CUI file and replacing the existing one on every user's computer. This is no longer practical or viable and I am trying to improve how this is done. I would prefer to do this via loading a partial CUI instead through either acad.lsp, acaddoc.lsp or a .bundle setup.

 

My questions are:

 

1) Can I append to or replace the Shortcut Menu "Context Menu for Default Mode"? We use AutoCAD & Civil3D and both of these have Repeat %s at the top of this shortcut menu. It as after this command and separator and before any others (which varies depending on which vertical we are running) that we want to append our additions to.

2) If I can do this, how do I go about it? From what I have read there are issues with altering shortcut menus via partial cuis but am getting a little lost with what is being said.

0 Likes
339 Views
1 Reply
Reply (1)
Message 2 of 2

Balaji_Ram
Alumni
Alumni

Hi,

 

It is not possible at present to define your default context menu items using a partial cuix and then have AutoCAD merge the menu items from the partial cuix to what exists in the main cuix. 

 

The default context menu items will have to be added to the main cuix. CUI API can help do this :

http://through-the-interface.typepad.com/through_the_interface/2014/02/adding-a-context-menu-item-wi...

 

or

 

create the menu items at runtime as explained in this blog post :

http://adndevblog.typepad.com/autocad/2012/06/extending-the-autocad-default-context-menu.html

 

Regards,

Balaji

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes