Shortcut menues, POP0
In AutoCAD you can write your own shortcut menu (pop0 in mnu/cui-File). BricsCAD actual ignores this menu. Is this feature planned to be implemented ?
Comments
-
This works for me. the beginning of my "V8.mnu" file is attached. I append it to the factory menu, but you don't have to do that.
I prefer to have it as a mnu file.
***MENUGROUP=V8
***POP1
[A-D]
[4SPLINE]^C^C^C(LOAD "4SPLINE");4SPLINE
[5050]^C^C^C(LOAD "5050");5050
[50100]^C^C^C(LOAD "50100");50100
[!(HALF)]!(HALF)
[!(INT)]!(INT)
[!(TRAK)]!(TRAK)
[!(TXTINS)]!(TXTINS)
[accessPanel]^C^C^C(LOAD "ACP");ACP
[ATTEDIT]^C^C^CDDATTE0 -
With POP0 I mean the standard context menu, available with pressing the third mouse button. If mbuttonpan=0 in AutoCAD, you can define after POP0 your own context menu. In BC you always get the snap-menu.
0 -
You can customize the various context menus by pulling down Tools > Customize > Menus tab > Context menus. There's a lot about it in the Help files.
There's also a variable, SHORTCUTMENU, that controls whether each of those context menus is enabled. To set that variable, pull down Settings > Settings, then type shortcutmenu, and open the folder that it takes you to.
0 -
Sorry, I misunderstood.
Anthony is right - I think the default for Shortcutmenu is 2, then you should see if your changes to pop0 have worked when you right click after selecting something.
But until you see what's in the factory context menus you won't really know if you want to change them.
They don't suit me entirely, but I don't dig into the standard menu anymore - it gets too complicated when there is a factory change.
You can easily use CUI (just type CUI) and find the Context Menus section as Anthony says, making whatever changes you like, but the difficulty juggling newer and older ICM files (if you don't overwrite your modified ICM first) is one of the reasons I stay right away from using CUI for menu customisations.
0 -
Anthony and John, thanks for your answer. John: I also will not change the standard's, as they still should be useable; CUI-merging/changing is complex, and doing this after each upgrade is boring. You aren't satisfied with the change-options, you say. I also. Attached an example, for easy changing the standard context menu, accessible by pressing the third mouse button. Such a solution I search in BricsCAD.
***MENUGROUP=TESTMNU
//
// Begin AutoCAD Digitizer Button Menus
//
***BUTTONS1
// Simple + button
// if a grip is hot bring up the Grips Cursor Menu (POP 500), else send a carriage return
// If the SHORTCUTMENU sysvar is not 0 the first item (for button 1) is NOT USED.
$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,5),GRIP_),$P0=TESTMNU.TESTMNU0 $P0=*);
$P0=TESTMNU.TESTMNU0 $p0=*
^C^C
^B
^O
^G
^D
^E
^T
//
// Begin System Pointing Device Menus
//
***AUX1
// Simple button
// if a grip is hot bring up the Grips Cursor Menu (POP 500), else send a carriage return
// If the SHORTCUTMENU sysvar is not 0 the first item (for button 1, the "right button")
// is NOT USED.
$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,5),GRIP_),$P0=TESTMNU.TESTMNU0 $P0=*);
$P0=TESTMNU.TESTMNU0 $p0=*
^C^C
^B
^O
^G
^D
^E
^T
***POP0
**TESTMNU0
[&Test-Menü]
// [~~~~~~]
[Neuzeich]'_redraw0 -
If you create your own custom CUI file (containing only the items that you want to customize) and attach it as a "partial" to the default CUI file supplied by BricsSys, then you don't have to do anything when you update to a new version. The new default file will automatically load your custom file as an attachment. See <a href="http://www.bricscad.com/common/support/forumthread.jsp?id=12439">this thread</a>.
I only use the CUI editor now. I can't remember the format of MNU files, so I can't answer the specific question about code.0 -
try again: <a href="http://www.bricscad.com/common/support/forumthread.jsp?id=12439">this thread</a>
0 -
Oh, there's a button now: this thread.
0 -
I append my MNU to the standard in the same way. I never could work out what happens when I try to override something already defined in the standard, specifically what Stefan is trying to do with context menus. Must try to get my head around how his arrangement works.
I have read some Acad users stick to the MNU, I have one function key assignment to a lisp routine in the MNU I couldn't get to work using CUI. Doesn't mean it isn't possible, but I suspect there are reasons for their MNU adherence if not that one.
I mainly use MNU because I used to use ICM which got dumped and had to transfer it all. I understand why CUI replaced it, but won't get caught again.
0 -
Up to v9, the context menu definitions in the main CUI file override those in the partial.
In v10, the ones in the partial file override the main. That seems to me a better arrangement, since the partial is likely to contain the user's customization. If there are multiple partials, the last one takes precedence.0 -
Hello Jahn + Anthony,
thanks for your answers. Your solution is just a workaround and different from AutoCAD, but it works. I changed the "ALIAS" in the partial cui to "SNAP", now my menu is displayed. Greetings.
0