Jump to content

Recommended Posts

Posted

i have library, i created mns file for private menu bar, and i want to add private to right click menu. anybody help me, plz!

 

Thanks so much !

Posted

If you are using AutoCAD 2011, it uses cuix files as menus, and not mnu, mns or cui.

Anyway,

1- Issue "CUI" command.

2- In the dialog, search in the left pane and find "Shortcut Menus" item. All the right click menus are defined here. If you add any option to "Command Menu", it will display inside all commands containing options (i.e. in LINE command when you have choices of Undo or Close). To add your desired options to right click menu when there is no command active, insert it into "Default Menu". To add option to shift-right click menu, add it to "Object Snap Cursor Menu".

Posted

thanks for your reply!

i known that, but i have so many PC, each PC use other Autocad version, so i cant use only cui or cuix file for all version. I want use mns file because all version support that kind. I mean, when i load private menu by command MENULOAD, right click menu also loaded. But i dont know how to do that. Do you know?

Posted

I checked AutoCAD 2005 acad.mnu. If you want to add your desired item and command to right click menus, you must insert it to: ***POP501 (**CMDEFAULT) and ***POP503 (**CMCOMMAND)

 

***POP501
**CMDEFAULT
            [[b]Context menu for default mode[/b]]
ID_CMNonLast [&Repeat %s]^C^C;
            [--]
ID_Cutclip   [Cu&t]^C^C_cutclip
ID_Copyclip  [&Copy]^C^C_copyclip
ID_Copybase  [Copy with &Base Point]^C^C_copybase
ID_Pasteclip [&Paste]^C^C_pasteclip
ID_Pastebloc [Paste as Bloc&k]^C^C_pasteblock
ID_Pasteorig [Paste to Original Coor&dinates]^C^C_pasteorig
            [--]
ID_U         [&Undo]^C^C_u
ID_Redo      [Re&do]^C^C_mredo 1
ID_Pan       [P&an]'_pan
ID_ZoomRealt [&Zoom]'_zoom ;
            [--]
ID_Filter    [&Quick Select...]^C^C_qselect
ID_TextFind  [&Find...]^C^C_find
ID_Preferenc [&Options...]^C^C_options

 

***POP503
**CMCOMMAND
            [[b]Context menu for command mode[/b]]
ID_Enter     [&Enter];
ID_Cancel    [&Cancel]^C
            [--]
ID_SubSnaps  [->Snap O&verrides]
ID_Tracking  [Temporary trac&k point]_tt
ID_From      [&From]_from
ID_MidTwoPts [Mid Bet&ween 2 Points]_m2p
ID_MnPointFi [->Poin&t Filters]
ID_PointFilx   [.X].X
ID_PointFily   [.Y].Y
ID_PointFilz   [.Z].Z
        [--]
ID_PointFixy   [.XY].XY
ID_PointFixz   [.XZ].XZ
ID_PointFiyz   [<-.YZ].YZ
            [--]
ID_OsnapEndp [&Endpoint]_endp
ID_OsnapMidp [&Midpoint]_mid
ID_OsnapInte [&Intersection]_int
ID_OsnapAppa [&Apparent Intersect]_appint
ID_OsnapExte [E&xtension]_ext
            [--]
ID_OsnapCent [&Center]_cen
ID_OsnapQuad [&Quadrant]_qua
ID_OsnapTang [Tan&gent]_tan
            [--]
ID_OsnapPerp [&Perpendicular]_per
ID_OsnapPara [Para&llel]_par
ID_OsnapNode [No&de]_nod
ID_OsnapInse [in&sert]_ins
ID_OsnapNear [Nea&rest]_nea
ID_OsnapNone [&None]_non
            [--]
ID_Osnap     [<-&Osnap Settings...]'_+dsettings 2
            [--]
ID_Pan       [$(if,$(eq,$(substr,$(getvar,cmdnames),1,4),ZOOM),~,)&Pan]'_pan
ID_ZoomRealt [$(if,$(eq,$(substr,$(getvar,cmdnames),1,4),ZOOM),~,)&Zoom]'_zoom ;

Posted

it mean, i must insert my menu code into both ***POP501 and ***POP503 ?

as the code you posted, POP501 likely the menu default right click, but POP503 is use for menu when use command relate osnap point. that right? I also found in mnu file of previous version cad ( 2004, 2005) and i see that have menugroup in code:

***MENUGROUP=ACAD
***BUTTONS1
$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,5),GRIP_),$P0=ACAD.GRIPS $P0=*);
$P0=SNAP $p0=* 
^C^C
...

***POP0
**SNAP
              [&Object Snap Cursor Menu]
ID_Tracking    [Temporary trac&k point]_tt 
ID_From        [&From]_from 
ID_MnPointFi   [->Poin&t Filters]
ID_PointFilx     [.X].X 
ID_PointFily     [.Y].Y 
ID_PointFilz     [.Z].Z 

 

and my menu code

***MENUGROUP=PRIVATE

***POP11
**STANDARD 
...

does the menu for right click have to insert to MENUGROUP ACAD or not?

Posted
... POP503 is use for menu when use command relate osnap point. that right?

Not correct. ***POP503 (**CMCommand) popups when you are inside a command with options (i.e LINE, when you specified at least one point.)

Posted
does the menu for right click have to insert to MENUGROUP ACAD or not?

You can load several menus into AutoCAD, so I offer you to make your own menu and save it in AutoCAD support folder (the folder in it ACAD.MNU exists). When in AutoCAD, issue "MENULOAD" command and load the menu.

 

Of course, the method doesn't work for POP 500+ popup menus, so you must change those in ACAD menugroup.

Posted

thanks so much, i will try and test again.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...