Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Custom Right Click Menu Chook


bryan314
 Share

Recommended Posts

Thanks Bryan for this cool CHOOK. cool.gif

cheers.gif

 

Is there any chance to change middle mouse button behavir too?

I mainly use SolidWorks and Rhino/PowerSHAPE and I use to use MMB alot.

MMB->Rotate

Shift+MMB->dynamic pan

Ctrl+MMB->dynamic zoom

Shift+Ctrl+MBB->zoom window

It's very useful if MMB can be used more effieciently in MC.

My wish is I could customize MMB+key combination in MC. smile.gif

Link to comment
Share on other sites
  • Replies 166
  • Created
  • Last Reply

Top Posters In This Topic

Need help please.

The concept of the right click menu is super. However, it doesn’t work for me. I must be doing something wrong or don’t know enough of what you guys know to configure this thing. I have dropped both mmouse.dll and mmouse.lua into my chooks folder and then ran mmouse.dll. I’m still getting the standard MC right click menu. I’m running v9.1, sp2 on w2k. If I'm doing something stupid or if I’m missing something obvious please don’t laugh. It will come back to haunt you.

Thanks very much.

Link to comment
Share on other sites

Copy mmouse.dll and mmouse.lua into chooks directory. alt-c run mmouse.dll should do it.

 

Also note if you run the chook a second time it disables the rightclick menu. Run again to reenable. It works as a toggle for the rightclick menu.

 

Bryan smile.gif

Link to comment
Share on other sites

Bryan,

I tried to add a function that would take me directly to Cplane, Named, Select Icon, but it only goes to the cplane menu. Actually I would like set it so when I click on Cplane my Named View Icons appear (instantly) I select the one I want to work in and my Cplane aaaannndddd my Tplane are autometically changed as soon as I select it.

Do I need to write a VB Script to accomplish this?

 

Rick teh VB VIRGIN.

Link to comment
Share on other sites

Rick,

 

What function are you using? If I use 'cpnamed' it goes to cplane view manager. But that's the slow way.

 

If you want Named view Icon -> set t/c plane use my setviews chook. It does just this. Actualy it sets the gview also.

 

The 'setviews' module built into the mmouse does the same thing but lists the named planes in a sub menu.

 

If you look at the realy-big picture above you'll see two menu items 'Named Planes' and "setviews' thats both of them, the chook and module.

 

You can get the setviews chook from my web site listed below.

 

Bryan smile.gif

Link to comment
Share on other sites
Guest CNC Apps Guy 1

Well for those of you out there either too lazy to configure it or not really sure how to do it, here are all but about 35 of Mastercam's functions. Just copy this text to the clipboard and into your text editor and save it as mmouse.lua

 

DISCLAIMER: Use As Is, no warranty expressed or implied. There is currently a 100 item limit Bryan says. It works on my machine as well has his but he will be addinng a higher limit (500) in the future.

 

Enjoy... Thanks a TON Bryan cheers.gif

 

code:

--rightclick menu

menu =

{

{ "mc", "unzoom", "&Unzoom",},

{ "mc", "fit", "F&it screen",},

{ "mc", "zoom", "&Zoom",},

{ "mc", "unzoom8", "Unzoom .&8",},

{ "mc", "gvdypan", "&Dynamic Pan",},

{ "mc", "gvdyzum", "D&ynamic Zoom",},

{ "mc", "repaint", "Re&paint",},

{ }, --separator

{ "mc", "gvtop", "&Top View",},

{ "mc", "gvbottom", "&Bottom View",},

{ "mc", "gvfront", "&Front View",},

{ "mc", "gvback", "&Back View",},

{ "mc", "gvside", "&Right Side View",},

{ "mc", "gvleft", "&Left Side View",},

{ "mc", "gviso", "&Isometric View",},

{ "mc", "gvdymic", "&Dynamic View",},

{ }, --separator

--ANALYZE SUBMENU

{ "submenu", "&Analyze", menu =

{

{ "mc", "analyze", "Analy&ze Menu",},

{ "mc", "anzpt", "&Point",},

{ "mc", "anzonly", "&Only",},

{ "mc", "anzbpts", "&Between Points",},

{ "mc", "anzang", "&Angle",},

{ "mc", "anzdynm", "&Dynamic",},

{ "mc", "anzarea", "A&rea",},

{ "mc", "anznumber", "&Number",},

{ "mc", "anzchain", "&Chain",},

{ "mc", "actour", "Con&tour",},

{ "mc", "anznorm", "Surface Norma&l",},

{ "mc", "anzsnrms", "Surface Set Normal&s",},

{ "mc", "anzscurv", "Surfaces C&urvature",},

{ "mc", "anzbase", "Surfaces Base Sur&face",},

{ "mc", "anzchmdl", "Surface Check &Model",},

{ "mc", "anzsmall", "Surfaces Small &Surfaces",},

{ "mc", "anzchksld", "Surfaces Check S&olid",},

},

},

--MASTERCAM FUNCTIONS SUBMENU

{ "submenu", "&Create", menu =

{

{ "submenu", "&Line", menu =

{

{ "mc", "crline", "L&ine Menu",},

{ "mc", "clvert", "&Vertical",},

{ "mc", "clhorz", "&Horizontal",},

{ "mc", "clepts", "&Endpoints",},

{ "mc", "clmulti", "&Multi",},

{ "mc", "clpolar", "&Polar",},

{ "mc", "clperp", "Pe&rpendicular",},

{ "mc", "clprppt", "Perpen&dicular to a Point",},

{ "mc", "clprpar", "Perpendicular to an Ar&c",},

{ "mc", "clparal", "Para&lell",},

{ "mc", "clplldst", "Paralell Dist&/Side",},

{ "mc", "clpllpt", "Paralell to a Poi&nt",},

{ "mc", "clpllar", "Paralell t&o an Arc",},

{ "mc", "clbisect", "&Bisect",},

{ "mc", "cltan", "&Tangent",},

{ "mc", "cltanang", "Tangent &Angle",},

{ "mc", "cltan2a", "Tangent &2 Arcs",},

{ "mc", "cltanpt", "Tangent P&oint",},

{ "mc", "clclose", "Clo&sest",},

},

},

{ "submenu", "&Arc", menu =

{

{ "mc", "crarc", "A&rc Menu",},

{ "mc", "capolar", "&Polar",},

{ "mc", "cactrpt", " Polar &Center Point",},

{ "mc", "casktch", "Polar &Sketch",},

{ "mc", "castart", "Polar St&art Point",},

{ "mc", "caend", "Polar E&nd Point",},

{ "mc", "caepts", "Endpoint&s",},

{ "mc", "ca3pts", "3 Po&ints",},

{ "mc", "catan", "&Tangent",},

{ "mc", "catan1", "Tangent &1 Entitiy",},

{ "mc", "catan1", "Tangent &2 Entitiy",},

{ "mc", "catan3", "Tangent &3 Enties",},

{ "mc", "catanpt", "Tangent P&oint",},

{ "mc", "catancl", "Tangent Center &Line",},

{ "mc", "catadyn", "Tangent &Dynamic",},

},

},

{ "submenu", "&Circle", menu =

{

{ "mc", "ca2ptcir", " &2 Point",},

{ "mc", "ca3ptcir", " &3 Poi&nts",},

{ "mc", "captrad", " Point/&Radius",},

{ "mc", "captdia", " Point/&Diameter",},

{ "mc", "captedge", " Point/&Edge",},

},

},

{ "submenu", "C&urve", menu =

{

{ "mc", "ccconst", "&Const. Parameter",},

{ "mc", "ccedge", "&1 Edge",},

{ "mc", "ccedges", "&All Edges",},

{ "mc", "ccinter", "&Intersect",},

{ "mc", "ccpatch", "&Patch Boundaries",},

{ "mc", "flow", "&Flowline",},

{ "mc", "ccproj", "P&roject",},

{ "mc", "ccdynmic", "&Dynamic",},

{ "mc", "ccpart", "P&arting Line",},

{ "mc", "slcsrfs", "&Slice",},

},

},

{ "submenu", "&Point", menu =

{

{ "mc", "crpoint", "Poin&t Menu",},

{ "mc", "crptpos", "&Position",},

{ "mc", "slccrvs", "S&lice",},

{ "mc", "ptalong", "&Along Entity",},

{ "mc", "nodepts", "&Node Points",},

{ "mc", "ctrlpts", "&Control Points - NURBS",},

{ "mc", "crptlen", "&Length",},

{ "mc", "ptdynmic", "&Dynamic",},

{ "mc", "ptsrfprj", "&Surface Project",},

{ "mc", "crptperp", "Pe&rpendicular",},

{ "mc", "crptcirc", "Small C&ircles",},

{ "mc", "crptgrid", "&Grid",},

{ "mc", "crptbcir", "&Bolt Circle",},

},

},

{ "submenu", "&Surface", menu =

{

{ "mc", "csloft", " &Loft",},

{ "mc", "cscoons", " &Coons",},

{ "mc", "csruled", " &Ruled",},

{ "mc", "csrev", " R&evolved",},

{ "mc", "csswept", " &Swept",},

{ "mc", "csdraft", " &Draft",},

{ "mc", "csfillet", " &Fillet",},

{ "mc", "csblendf", " Fillet &Blend",},

{ "mc", "csofst", " &Offset",},

{ "mc", "cstrim", " &Trim",},

{ "mc", "csblend", " &2 Surface Blend",},

{ "mc", "csblend3", " &3 Surface Blend",},

{ "mc", "csprim", " &Primitives",},

{ "mc", "csrfsld", " From S&olid",},

},

},

{ "submenu", "&Drafting", menu =

{

{ "mc", "crdraft", "&Drafting",},

{ "mc", "draftpm", "&Globals",},

{ "mc", "dfshow", "&Show Association",},

{ "mc", "cddim", "D&imension",},

{ "mc", "crnote", "&Note",},

{ "mc", "crlabel", "&Label",},

{ "mc", "crleader", "L&eader",},

{ "mc", "crwit", "&Witness",},

{ "mc", "crdhmz", "Hori&zontal",},

{ "mc", "crmvt", "&Vertical",},

{ "mc", "crdmpll", "Pa&ralell",},

{ "mc", "crdman", "&Angular",},

{ "mc", "crdmdia", "Dia&meter",},

{ "mc", "crdmbsln", "&Baseline",},

{ "mc", "crdmchn", "&Chained",},

{ "mc", "crmord", "&Ordinate",},

{ "mc", "crdmpt", "&Point",},

{ "mc", "eddraft", "&Multi-edit",},

{ "mc", "crhatch", "&Hatch",},

{ "mc", "dfregen", "&Regenerate",},

{ "mc", "dfrgaut", "Regenerate Au&to",},

{ "mc", "dfrgsel", "Regenera&te Selected",},

{ "mc", "dfvdate", "Re&generate Validate",},

},

},

{ "submenu", "S&olids", menu =

{

{ "mc", "sldmake", "S&olid Menu",},

{ "mc", "sldext", "&Extrude",},

{ "mc", "sldrev", "&Revolve",},

{ "mc", "sldsweep", "&Sweep",},

{ "mc", "sldloft", "&Loft",},

{ "mc", "sldchmfr", "&Chamfer",},

{ "mc", "sldshell", "S&hell",},

{ "mc", "sldbool", "&Boolean",},

{ "mc", "sldprim", "&Primitives",},

{ "mc", "slddrfac", "&Draft Faces",},

{ "mc", "sldtrim", "&Trim",},

{ "mc", "sldlayout", "L&ayout",},

{ "mc", "sldfeat", "&Find Features",},

{ "mc", "sldthick", "&Thicken",},

{ "mc", "sldhist", "Histor&y",},

},

},

{ }, --separator

{ "mc", "crfillet", "&Fillet",},

{ "mc", "cchamfer", "C&hamfer",},

{ "mc", "crspline", "Spl&ine",},

{ "mc", "ellipse", "&Ellipse",},

{ "mc", "crrec", "&Rectangle",},

{ "mc", "crpolyg", "Pol&ygon",},

{ "mc", "crlets", "&Letters",},

{ "mc", "pattern", "&Pattern",},

{ "mc", "sprlhlx", "Spiral &Helix",},

{ "mc", "makebbox", "&Bounding Box",},

{ }, --separator

},

},

-- { }, --separator

--FILE SUBMENU

{ "submenu", "&File", menu =

{

{ "mc", "file", "File Menu",},

{ "mc", "editfile", "Edit",},

{ "mc", "initscrn", "New",},

{ "mc", "filemrg", "Merge",},

{ "mc", "filesave", "Save",},

{ "mc", "fileget", "Get",},

{ "mc", "hardcopy", "Hardcopy",},

{ "mc", "browse", "Browse",},

{ "mc", "communic", "Communications",},

{ "mc", "convert", "Convert",},

{ "mc", "ascii", "Convert ASCII",},

{ "mc", "cadl", "Convert CADL",},

{ "mc", "autodesk", "Convert AutoCAD",},

{ "mc", "dxf", "Convert DXF",},

{ "mc", "iges", "Convert IGES",},

{ "mc", "vda", "Convert VDA",},

{ "mc", "renumber", "Renumber",},

{ "mc", "shell", "DOS Shell",},

{ "mc", "levelrep", "Levels Report",},

{ "mc", "version", "Version",},

{ "mc", "autosave", "AutoSave",},

{ "mc", "ramsaver", "RAM Saver",},

{ "mc", "mmalloc", "List Memory",},

{ "mc", "mfile", "List Files",},

},

},

-- { }, --separator

--MODIFY SUBMENU

{ "submenu", "&Modify", menu =

{

{ "mc", "modify", "Modify Menu",},

{ "mc", "trim1", "Trim to &1 Entity",},

{ "mc", "trim2", "Trim to &2 Entities",},

{ "mc", "trim3", "Trim to &3 Entities",},

{ "mc", "trim2pt", "Trim to a &Point",},

{ "mc", "trimmany", "Trim to &Many",},

{ "mc", "closearc", "&Close Arc",},

{ "mc", "divide", "Trim &Divide",},

{ "mc", "break", "&Break",},

{ "mc", "breakarcs", "Break &Arcs ",},

{ "mc", "brkmany", "Break into Ma&ny Pieces",},

{ "mc", "brk2pcs", "Brea&k into 2 pieces",},

{ "mc", "brklen", "Break at &Length",},

{ "mc", "brknote", "Break &Note to Lines",},

{ "mc", "brkhatch", "Break &Hatch to Lines",},

{ "mc", "brkcdata", "Break C/Da&ta to Lines",},

{ "mc", "join", "&Join",},

{ "mc", "modnorm", "N&ormal",},

{ "mc", "modnbs", "Control Points NU&RBS",},

{ "mc", "x2nbs", "&X to NURBS",},

{ "mc", "extend", "Ex&tend",},

{ "mc", "drag", "Dra&g",},

{ "mc", "dragnote", "Drag Not&e",},

{ "mc", "extsrf", "Extend S&urface",},

{ "mc", "cnv2arcs", "Con&vert Splines to Arcs",},

{ "mc", "tscurves", "Surfaces Trim to C&urves",},

{ "mc", "tsplane", "Surfaces Trim to Plane",},

{ "mc", "tssurfs", "Surfaces Trim to Surfaces",},

{ "mc", "tsfbnd", "Surfaces Trim to Flat Boundary",},

{ "mc", "tsuntrm", "Surfaces Untrim",},

{ "mc", "tsrbnd", "Surfaces Remove Boundary",},

{ "mc", "tssplit", "Surfaces Split",},

},

},

-- { }, --separator

--XFORM SUBMENU

{ "submenu", "&Xform", menu =

{

-- { "mc", "xform", "&Xform Menu",},

{ "mc", "xfmmir", "&Mirror",},

{ "mc", "xfmrot", "&Rotate",},

{ "mc", "xfmscale", "&Scale",},

{ "mc", "xfmsqsh", "S&quash",},

{ "mc", "xfmtrans", "&Translate",},

{ "mc", "xfmofst", "&Offset",},

{ "mc", "xfmoctr", "Offset &Contour",},

{ "mc", "xfmstretch", "Str&etch",},

{ "mc", "xfmroll", "Ro&ll",},

},

},

-- { }, --separator

--DELETE SUBMENU

{ "submenu", "&Delete", menu =

{

{ "mc", "delete", "&Delete Menu",},

{ "mc", "delwndw", "&Window",},

{ "mc", "delchain", "Chain",},

{ "mc", "deldup", "Duplicate Entities",},

{ "mc", "delonly", "Only",},

{ "mc", "delall", "All",},

{ "mc", "undelent", "Undelete Single",},

{ "mc", "delgrp", "Group",},

{ "mc", "delreslt", "Result",},

{ "mc", "undelete", "Undelete",},

{ "mc", "undo", "Undo",},

},

},

--SCREEN SUBMENU

{ "submenu", "&Screen", menu =

{

{ "mc", "dispinfo", " Display Part Info",},

{ "mc", "dbstats", " Statistics",},

{ "mc", "endpts", " Endpoints",},

{ "mc", "clrcolrs", " Clear Colors",},

{ "mc", "chgcolrs", " Change Colors",},

{ "mc", "chglevs", " Change Levels",},

{ "mc", "attribs", " Attributes",},

{ "mc", "chgattrs", " Change Attributes",},

{ "mc", "surfdisp", " Surface Display",},

{ "mc", "studio", " Studio",},

{ "mc", "shade", " Shade",},

{ "mc", "shadetog", " Shade Toggle",},

{ "mc", "transtog", " Shade Translucent Toggle",},

{ "mc", "blank", " Blank",},

{ "mc", "setmain", " Set Main Level/Entity",},

{ "mc", "level", " Levels Main",},

{ "mc", "hide", " Hide",},

{ "mc", "hidemore", " Hide More",},

{ "mc", "unhdsome", " Unhide Some",},

{ "mc", "grid", " Selection Grid",},

{ "mc", "vwports", " Viewports",},

{ "mc", "drwaxes", " Draw Axes",},

{ "mc", "combviews", "Combine Views",},

{ "mc", "scrnctr", "Center",},

{ "mc", "plot", "Plot",},

{ "mc", "eamgr", "Entity Attributes Manager",},

{ "mc", "regen", "Regenerate",},

{ "mc", "clipbrd", "To Clipboard",},

{ "mc", "drawnc", "Draw Toolpath",},

},

},

--NC UTILITIES SUBMENU

{ "submenu", "&NC Utils", menu =

{

{ "mc", "ncutils ", "&NC Utils Menu",},

{ "mc", "filter", "&Filter",},

{ "mc", "pstmenu", "Post &Menu",},

{ "mc", "pstchg", "&Change Post Processor",},

{ "mc", "pstrun", "&Post Process",},

{ "mc", "pstrev", "&Reverse Post",},

{ "mc", "deftls", "&Define Tools",},

{ "mc", "setsht", "&Setup Sheet",},

{ "mc", "backplot", "&Backplot",},

},

},

--TOOLPATHS SUBMENU

{ "submenu", "&Toolpaths", menu =

{

{ "submenu", "Multi-Axis", menu =

{

{ "mc", "multiax", "Multi-Axis Toolpath Menu",},

{ "mc", "curve5ax", "Curve 5 Axis",},

{ "mc", "drill5ax", "Drill 5 Axis",},

{ "mc", "swarf5ax", "Swarf 5 Axis",},

{ "mc", "flow5ax", "Flowline 5 Axis",},

{ "mc", "rotary4ax", "Rotary 4 Axis",},

},

},

{ "mc", "tpmenu", "Toolpath Menu",},

{ "mc", "contour", "Contour",},

{ "mc", "pocket", "Pocket",},

{ "mc", "drill", "Drill",},

{ "mc", "ncsurf", "Surface Menu",},

{ "mc", "ncflow", "Surface Flowline",},

{ "mc", "ncproj", "Project",},

{ "mc", "nctrim", "Trim",},

{ "mc", "nccoons", "Coons",},

{ "mc", "ncruled", "Ruled",},

{ "mc", "ncswept", "Swept",},

{ "mc", "ncrev", "Revolved",},

{ "mc", "manent", "Manual Entry",},

{ "mc", "ncpoint", "Point",},

},

},

{ }, --separator

{ "mc", "zdepth", "Z Depth",},

{ "mc", "color", "Color",},

{ "mc", "level", " Levels Manager",},

{ "mc", "attribs", "Attributes",},

{ "mc", "group", "Groups",},

{ "mc", "mask", "Mask",},

{ "mc", "namview", "WCS View Manager",},

{ "mc", "tplane", "Tool Plane Menu",},

{ "mc", "cplane", "Const. Plane Menu",},

{ "mc", "gview", "Graphics View Menu",},

{ "mc", "dbstats", "Screen Statistics",},

{ }, --separator

{ "mc", "oplist", "&Operations Manager",},

{ "mc", "jobsetup", "&Job Setup",},

{ "mc", "help", "&Help",},

{ }, --separator

--CHOOKS SUBMENU

{ "submenu", "&Chooks", menu =

{

{ "mc", "rundll", "Execute C-Hook",},

{ "chook", "setdirs", "&Set Directories",},

{ "chook", "mcamvb", "Mastercam VB",},

{ "chook", "UpdatePST9", "&Update Post Processors",},

{ "chook", "flatsrf", "Flatten Surface",},

{ "chook", "findovlp", "Find Overlap",},

{ "chook", "fplot", "Function Plotting",},

{ "chook", "hardware", "Hardware",},

{ "chook", "gear", "Gear",},

{ "chook", "htable", "Hole Table",},

{ "chook", "tpcfg", "Toolpath Configure",},

{ "chook", "unfold", "Unfold",},

{ "chook", "volume", "Volume",},

{ "chook", "rolldie", "Rolldie",},

{ "chook", "readhpgl", "Read HPGL",},

{ "chook", "impell", "Impeller",},

{ "chook", "floor5ax", "Floor 5 Axis",},

{ "chook", "editnci", "Edit NCI",},

-- { "chook", " ", " ",},

},

},

--VBSCRIPTS SUBMENU

{ "submenu", "Vbscripts", menu =

{

{ "vbscript", "askColor", "Ask Color",},

{ "vbscript", "getpoint", "Get Point",},

{ "vbscript", "BackupToZIP ", "Backup Current File using WinZIP ",},

{ "vbscript", "MailCurrentDrawing", "Mail Current Drawing",},

{ "vbscript", "QuickSave", "Quick Save",},

{ "vbscript", "ImportDWGFiles", "Batch Import AutoCAD Drawings",},

{ "vbscript", "savebackup", "Save Backup",},

},

},

{ }, --separator

{ "module", "Autocursor", "Autocursor",},

{ },

{ "mc", "curpos", "Cursor Tracking",},

{ },

{ "submenu", "Nuke!", menu =

{

{ "module", "nuke", "Nuke!",},

},

},

 

 

 

 

}

 

--CONFIG

right.rightclickmenu(menu)

 

--MOUSE WHEEL SCROLL

right.mousezoomcursor(true) --zoom on mouse cursor

right.colorscroll(true) --scroll color button

right.levelscroll(false) --scroll level button

 

--MOUSE WHEEL CLICK

right.middleclickscreen(true) -- middle-click screen(gview dynamic)

right.middleclickaction(0) -- middle-click screen action: 0=gview dynamic, 1=gview pan, 2=gview zoom

 

right.middleclick_colorbutton(false) --run action middle-click color button

right.middleclick_colorbutton_action("mc", "chgcolrs") --m-click color button. actions: "mc", "chook", or "vbscript"

 

right.middleclick_levelbutton(false) -- run action middle-click level button

right.middleclick_levelbutton_action("mc", "chglevs") --m-click level button. actions: "mc", "chook", or "vbscript"

 

right.middleclick_attrbbutton(true) -- run action middle-click attributes button

right.middleclick_attrbbutton_action("mc", "chgattrs") --m-click attrb button. actions: "mc", "chook", or "vbscript"

 

--BLANK SUBMENU PRIMER

-- { "submenu", "EMPTY", menu =

-- {

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- },

-- },

--

--BLANK SUBMENU WITH SUBMENU PRIMER

-- { "submenu", "EMPTY", menu =

-- {

-- { "submenu", "EMPTY", menu =

-- {

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- },

-- },

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- { "mc", " ", " ",},

-- },

-- },

Sorry for the length...

Link to comment
Share on other sites

Brian,

I am looking for a 2 click method to set my Tool and Construction planes to a named view. I do most of my work in G View- Iso so I don't want to set my G View to match (there is a setting for that in screen config). Can the SET Views module be modified to do this? (I know it can I just don't know ehough about it to do it myself. I am learning some S__T today though.)

Thanks in advance>

Link to comment
Share on other sites

Yet Another Update:

[6/8/04 bryan314 removed old link. New link in later post]

 

First off James has Waaaaaay to much time on his hands. eek.gif I put a copy of james file is in the new zip file.

 

Also of note: The number of menu items was hardcoded to 100. I didn't think anybody would put that many items in there before I could rewrite the backend memory stuff. Why James' file worked I dont know. I've temporarily bumped it up to 500. It should not be a problem now. I'm working on making the limits dynamic right now. That'll mean the number of items will only be limited by your system memory.

 

I tried to make parse error messages more descriptive. If there is a problem the chook should try tell you what line in the lua file it's having problems with. ( Thanks James )

 

Expanded screen middle click. You can now assign Gview dynamic, Gview pan, Gview zoom, or Zoom Window to screen middle clicks:

Middle-click

Shift-Middle-click

Ctrl-Middle-click

Shift-Ctrl-Middle-click

(thanks kwolf)

 

 

New Module: Insert pattern

This is a hybrid of my Insert Hardware chook, Mastercams Insert Pattern function and the Entity Attributes Manager.

 

{ "module", "pattern", menu string, file path and name, use main color t/f, use main level t/f, use main attrb t/f, try to clean groups t/f, },

 

STEPS IT PREFORMS:

1) Backs up the Insert Pattern pattern.prm file

2) Backs up the current EA settings.

3) Creates a new pattern.prm file with the filename that's in the module.

4) Turns on the EA manager and bulks sets the items based on the main color, main level, main attributes settings in the module.

5) Runs the Insert Pattern function. You can further tweak the insert pattern and EA manger through their normal dialog boxes.

After Insert Pattern:

6) Restores old EA parameters and pattern.prm file.

7) If the Clean Groups is set (in the moudule) it tries to delete any groups Insert Pattern made. (I thought there was a way to stop Insert Pattern from doing this, in the first place but for the life of me if can't find it.)

 

Bryan smile.gif

 

[ 06-08-2004, 11:27 AM: Message edited by: bryan314 ]

Link to comment
Share on other sites
Guest CNC Apps Guy 1

quote:

...James you got nothing better to do...

Believe it or not, it only took me about 3 hours to do this. I guess when you know what you're doing and what you're trying to accomplish, things just go faster rolleyes.gifbiggrin.giftongue.gifeek.gif

Most of the time was not spent coding either, it was spent parsing the function calls and scratching them off the list. The coding was a breeze until I accidentally deleted a " then it would not go for anything. Thanks for the debug tool Bryan. It took me about 3 hours to go line by line to find the missing " eek.gif lukily I have an understanding wife biggrin.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...