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:

Leaderboard

Popular Content

Showing content with the highest reputation on 05/16/2019 in all areas

  1. I'm answering my own questions. Thanks guys. I got it.
    1 point
  2. Mask on Arc Click Mask on Arc, select an arc, then window all the arcs and accept...you then can sort them
    1 point
  3. You can use a NET-Hook to do this, below is a basic example. The NET-HOOK - namespace QueryViews { using System.Linq; using Mastercam.App; using Mastercam.App.Types; using Mastercam.Posting; using Mastercam.Posting.Types; using Mastercam.Support; using Mastercam.Database; public class Main : NetHook3App { #region Public Override Methods /// <summary> The main entry point for your QueryViews. </summary> /// /// <param name="param"> System parameter. </param> /// /// <returns> A <c>MCamReturn</c> return type representing the outcome of your NetHook application. </returns> public override MCamReturn Run(int param) { var postArguments = GetPostArguments(); var view = GetView(postArguments.Argument1); if (view != null) { SetPostArguments(view.WorkOffsetNumber.ToString(), view.ViewID.ToString(), view.ViewOrigin.ToString()); return MCamReturn.NoErrors; } else { SetPostArguments($"-99999", $"{postArguments.Argument1} NOT FOUND", $"{postArguments.Argument1} NOT FOUND"); return MCamReturn.ErrorOccurred; } } private PostProcessorArgumentsType GetPostArguments() => (PostProcessorArgumentsType)PostingManager.PostProcessorArguments; private MCView GetView(string name) => SearchManager.GetViews() .Where(v => v.ViewName.ToUpper() == name.ToUpper()) .Select(v => v).FirstOrDefault(); private void SetPostArguments(string argumentOne, string argumentTwo, string argumentThree) { PostProcessorArgumentsType returnArguments; returnArguments.Argument1 = argumentOne; returnArguments.Argument2 = argumentTwo; returnArguments.Argument3 = argumentThree; PostingManager.PostProcessorArguments = returnArguments; } #endregion } } The post - #region Numeric Variable Initializations dll_return : 0 #endregion End Numeric Variable Initializations #region String Variable Initializations sdq : '"' # " sspace : " " snone : "none" sinvalid : "-99999" sdll : "QueryViews.dll" sdll_args : "" #endregion End String Variable Initializations #region Query Views sview_name : "TestWCS" fq 1 sview_name "Enter a View's Name to Query" pquery_views q1 sdll_args = sdq + sview_name + sdq dll_return = dll(sdll, sdll_args) if spost_arg_0$ <> sinvalid, [ sview_name, "- Found!", e$ " Work Offset ->", spost_arg_0$, e$ " View ID ->", spost_arg_1$, e$ " Origin ->", spost_arg_2$, e$ ] else, "ERROR -", spost_arg_1$, e$ #endregion Query Views psof$ pquery_views Output - // TestWCS - Found! // Work Offset -> 59 // View ID -> 52 // Origin -> X0.0000 Y0.0000 Z0.0000
    1 point
  4. I have something that seems to have helped Mastercam be more stable and crash less. Inside task manager there is the ability to set priority of programs. If you go in and set Mastercam to high priority, it seems to be more stable and process things faster (on my computer at least). The problem is that it only lasts until you close Mastercam. I did a Google search and there are add on programs that will keep the priority set to high. The program I downloaded is called Prio. It installs and runs in the background. It starts when windows does and now when I run Mastercam the priority is always set at high. All you have to do is start task manager and high light Mastercam (once it's running) right click- Set it to high and also check save priority. Set it once and it's done.
    1 point
  5. Don't use mastercam tool manager. We create custom tools using mastercam itself. Always more than one way to do things.
    0 points

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...