Menu Madness Lynn Allen Autodesk Technical Evangelist Course

  • Slides: 40
Download presentation
Menu Madness Lynn Allen Autodesk Technical Evangelist

Menu Madness Lynn Allen Autodesk Technical Evangelist

Course Objective • Cover those basic customization techniques that give us the best results

Course Objective • Cover those basic customization techniques that give us the best results in the shortest amount of time!

Course Outline • • • The Anatomy of a Menu file Basic Menu Customization

Course Outline • • • The Anatomy of a Menu file Basic Menu Customization Shortcut menus Toolbars Accelerators Ways to torture your coworkers!

Anatomy of a Menu: Major Menu Divisions ***BUTTONSn ***AUXn ***POPn ***IMAGE ***SCREEN ***TABLET ***

Anatomy of a Menu: Major Menu Divisions ***BUTTONSn ***AUXn ***POPn ***IMAGE ***SCREEN ***TABLET *** MENUGROUP= ***ACCELERATORS ***HELPSTRINGS ***TOOLBARS

Pull-down menus: ***POP 1 -499 menus – Only ***POP 1 -16 will display

Pull-down menus: ***POP 1 -499 menus – Only ***POP 1 -16 will display

Short-cut (Cursor) Menus ***POP 0 and ***POP 500 -999

Short-cut (Cursor) Menus ***POP 0 and ***POP 500 -999

New Pops (2000 -2002): • • • POP 500 POP 501 POP 502 POP

New Pops (2000 -2002): • • • POP 500 POP 501 POP 502 POP 503 POP 504 POP 505 POP 506 POP 507 POP 508 POP 509 POP 510 POP 511 Grips cursor menu Default cursor menu Edit cursor menu Command cursor menu Dimension cursor menu Viewport cursor menu XREF cursor menu (multiple) MTEXT cursor menu HATCH cursor menu LWPLINE cursor menu SPLINE cursor menu

New Pops - 2004 • • • POP 512 POP 513 POP 514 POP

New Pops - 2004 • • • POP 512 POP 513 POP 514 POP 515 POP 516 Polyline Xref (Single) Blocks with Attributes Viewports (multiple)

Buttons and Aux menus (used to control the buttons on your input device) Buttons

Buttons and Aux menus (used to control the buttons on your input device) Buttons 1 and Aux 1 Buttons 2 and Aux 2 Buttons 3 and Aux 3 Buttons 4 and Aux 4 simple pick shift+pick control+pick shift+control+pick

IMAGE menus

IMAGE menus

Screen Menus

Screen Menus

Tablet Menus

Tablet Menus

TABLET Menus ACAD. MNU permits a total of 4 tablet menus ***TABLET 1 ***TABLET

TABLET Menus ACAD. MNU permits a total of 4 tablet menus ***TABLET 1 ***TABLET 2 ***TABLET 3 ***TABLET 4

Menugroup= Used for marking menu items and partial menu loading

Menugroup= Used for marking menu items and partial menu loading

Helpstrings

Helpstrings

Menu Filetypes • • • MNU MNC MNS MNR MNL

Menu Filetypes • • • MNU MNC MNS MNR MNL

MNU Template File MNC Compiled Menu file MNS Source File MNR Resource File MNL

MNU Template File MNC Compiled Menu file MNS Source File MNR Resource File MNL Lisp file attached to menu

Pull-down Menu Basics : ; enter Example: zoom; a erase; all; ;  pause

Pull-down Menu Basics : ; enter Example: zoom; a erase; all; ; pause for user input -insert; pulley; ; ; dtext; . 5; 0;

Menu item layout Menu items need a title [in brackets] followed by the macro

Menu item layout Menu items need a title [in brackets] followed by the macro (what you want the menu item to do!) [title]menu macro [I give up!]quit

[screen display] Example: [Pulley]-insert; pulley ^C cancel Example: [Pulley]^C^C-insert; pulley & mnemonic key Example:

[screen display] Example: [Pulley]-insert; pulley ^C cancel Example: [Pulley]^C^C-insert; pulley & mnemonic key Example: [&Pulley]^C^C-insert; pulley * repeats a menu item Example: [&Pulley]*^C^C-insert; pulley; ; ;

Misc. menu codes [- -] + draws a separator line for long menu items

Misc. menu codes [- -] + draws a separator line for long menu items that need to wrap down to the next line. * repeats a menu item Multiple t repeats a command right justifies menu text

Sample. MNU (pull-down) ***POP 1 [&Misc] [&Zap]^C^Cerase; all; ; [&Logo]^C^C-insert; logo [S&Quare]*^C^Cpolygon; 4; e;

Sample. MNU (pull-down) ***POP 1 [&Misc] [&Zap]^C^Cerase; all; ; [&Logo]^C^C-insert; logo [S&Quare]*^C^Cpolygon; 4; e; \ [&Filled Circle]^C^C_donut; 0; [&Trim Corners]^C^Cmultiple; fillet; r; 0; \ [Ale&X Toolbar]^C^C-toolbar; alex; show [- -] [Z&oom]’zoom [&Annoying display items]^C^Cucsicon; off; + blipmode; 0 [&Extendr. F 11]^C^Cextend

Casading Menus -> indicates the Start of a cascade <- indicates the End of

Casading Menus -> indicates the Start of a cascade <- indicates the End of a cascade [->CIRCLE] <-<- begins a cascade returns you from a second cascade.

Cascade example from the ACAD menu: [->&Ellipse] [&Center]^C^C_ellipse _c [Axis, &End]^C^C_ellipse [--] [<-&Arc]^C^C_ellipse _a

Cascade example from the ACAD menu: [->&Ellipse] [&Center]^C^C_ellipse _c [Axis, &End]^C^C_ellipse [--] [<-&Arc]^C^C_ellipse _a [--] [->&Block]

Cursor Menus • ***POP 500+ Can create your own object shortcuts For editing: OBJECT_objectname

Cursor Menus • ***POP 500+ Can create your own object shortcuts For editing: OBJECT_objectname Example: ***POP 509 **OBJECT_HATCH For creating: COMMAND_commandname Example: ***POP 513 **COMMAND_CIRCLE

Buttons menu ***BUTTONS 1 ; ‘zoom ---------------------------***AUX 1 ; ^C^Cqsave

Buttons menu ***BUTTONS 1 ; ‘zoom ---------------------------***AUX 1 ; ^C^Cqsave

Tablet Menu ***TABLET 1 [A-1]^C^CXLINE [A-2]^C^CRAY [A-3]’RTPAN [A-4]’RTPAN [B-1]’RTZOOM [B-2]’RTZOOM

Tablet Menu ***TABLET 1 [A-1]^C^CXLINE [A-2]^C^CRAY [A-3]’RTPAN [A-4]’RTPAN [B-1]’RTZOOM [B-2]’RTZOOM

Toolbars! (Couldn’t be easier!)

Toolbars! (Couldn’t be easier!)

Toolbar Customization dialog

Toolbar Customization dialog

Torture your coworkers. . .

Torture your coworkers. . .

The Object Property toolbar: **TB_OBJECT_PROPERTIES ID_Tb. Object. P [_Toolbar("Object Properties", _Top, _Show, 0, 1,

The Object Property toolbar: **TB_OBJECT_PROPERTIES ID_Tb. Object. P [_Toolbar("Object Properties", _Top, _Show, 0, 1, 1)] ID_Ai_molc [_Button("Make Object's Layer Current", "ICON_16_MOLC")]^C^C_ai_molc [- -] [_Control(_Layer)] [- -] [_Control(_Color)] [- -] [_Control(_Linetype)] [- -] [_Control(_Lineweight)] [- -] [_Control(_Plot. Style)]

Others you can add: [_Control(_Dim. Style)] [_Control(_View)] [_Control(_UCSManager)] [_Control(_Viewport. Scale)] Auto. CAD 2004: [_Control(_Txt.

Others you can add: [_Control(_Dim. Style)] [_Control(_View)] [_Control(_UCSManager)] [_Control(_Viewport. Scale)] Auto. CAD 2004: [_Control(_Txt. Style)]

Warning! Toolbars are saved in the MNS! To SAVE for good: Rename the MNS

Warning! Toolbars are saved in the MNS! To SAVE for good: Rename the MNS to the MNU (always save a copy of the original MNU!)

Accelerators • The ability to assign Auto. CAD commands to specific keys and key

Accelerators • The ability to assign Auto. CAD commands to specific keys and key combinations

Accelerator editor

Accelerator editor

The following keys can be reassigned: • Function keys (F 1 -F 12) [“F

The following keys can be reassigned: • Function keys (F 1 -F 12) [“F 1”], [“F 2”], [“F 3”], [“F 4”] • Control key combinations [Control+“L”], [Control+”K”] • Shift key combinations [Shift+”E”], [Shift+”R”] • Shift + Control key combinations [Shift+Control+”E”], [Shift+Control+”Z”]

More accelerators. . . • Arrow keys [Control+”up”], [Control+”down”], [Control+”left”], [Control+”right”] • Escape key

More accelerators. . . • Arrow keys [Control+”up”], [Control+”down”], [Control+”left”], [Control+”right”] • Escape key [“Escape”] • number pad keys 0 -9 [“numpad 0”], [“numpad 1”] • Home, End, Insert and Delete [Control+”Home”], [Control+“End”], [Control+“Ins ert”], [Control+“Delete”]

Examples: [Shift+”E”]endp [Shift+Control+”I”]int [Conrol+”Q”]Quit [Control+“INSERT”]^C^Cinsert [Control+“DELETE”]^C^Cerase [Control+“LEFT”]^C^CU [Control+“RIGHT”]^C^Credo [“F 4”]’osmode; 4095 [“F 11”]^C^Cextend [“F

Examples: [Shift+”E”]endp [Shift+Control+”I”]int [Conrol+”Q”]Quit [Control+“INSERT”]^C^Cinsert [Control+“DELETE”]^C^Cerase [Control+“LEFT”]^C^CU [Control+“RIGHT”]^C^Credo [“F 4”]’osmode; 4095 [“F 11”]^C^Cextend [“F 12”]^C^Ctrim [“NUMPAD 5”]@x^h ["NUMPAD 6"]<0 ["NUMPAD 9"]<45 ["NUMPAD 8"]<90 ["NUMPAD 7"]<135 Note: Be careful what you assign!

Ways to abuse your coworkers. . . TORTURE. MNU ***accelerators [“ESCAPE”]^C^Cerase; l; ;

Ways to abuse your coworkers. . . TORTURE. MNU ***accelerators [“ESCAPE”]^C^Cerase; l; ;

How to contact me: lynn. allen@autodesk. com www. autodesk. com/lynnallen

How to contact me: lynn. allen@autodesk. com www. autodesk. com/lynnallen