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:

DaveNiewinski

In-House Solutions
  • Posts

    18
  • Joined

  • Last visited

Posts posted by DaveNiewinski

  1. I know this is a bit of an old topic, but was a solution found? I'm having the exact same problem in X7 MU1.

     

    The default 'NC File' settings on the the Post Processing dialog are -> Overwrite is checked and Edit is un-checked.

    - If I post using the G1 and leave the defaults, nothing comes up. If I select Edit, the file opens in Notepad++.

    - If I post from a NetHook written in C# with NETHook3_0 and the code below, the posted file opens in Notepad (the default windows one).

     

    Operation[] AllOps;

    AllOps = Mastercam.Support.SearchManager.GetOperations(false);

    OperationsManager.PostOperations(AllOps, tempFolderRoot, false);

     

    I have no clue what is going wrong. If I use this code on another system, it seem to work as expected. Are there any machine/control/post settings that force opening?

  2. In Mastercam, when I set a miscellaneous int in a toolpath, disable "Automatically set to post values when posting", and then post, those values are passed to the post without a problem.

     

    When I use this code below in a NetHook, the values are set, and that box is disabled in the path, but the post is using its default values until the toolpath is regenerated:

     

    op.MiscValues.UseValuesFromPost = false;
    op.MiscValues.Integers[0] = 1;
    op.Commit(false);
    

     

    Both of those methods make the Misc. Values page look identical under the path, but only the manual one seems to work without regenerating. Am I missing something?

  3. What exactly are you thinking of changing?

     

    I would want to be able to change the location of machine, control definitions, and posts with a utility so it's faster and more automatic. It would also make it easier to quickly check for issues in a setup in case something isn't linked properly. I would have to make sure Mastercam is closed, and make a backup of the file first for safety of course.

     

    Looking in the file, I can find where these are declared: "%MCAMDIR%wire\posts\Agie Generic Agievision_AWF 4X Wire.pst". I guess trial and error might be my best option for now. I haven't looked into NETHooks or CHooks for doing this yet.

  4. FLOBOTMASTER,

     

    Depending on what path you are using, there may be options in the path. For example, if you are using Curve 5 Axis, there is an option under Tool Axis Control called "Backplot Rotary Axis". Changing that will control what axis is used in the backplot. This option isn't available for all paths.

     

    Dave

  5. I'm just curious if there is any easy way to get the size of an operation/toolpath using a nethook. In the Operations Manager, when you generate a toolpath, there is always a size (usually in K) under the path. How can I get this value using a nethook? I can't find any functions or variables in an operation object where this information is stored or retrieved. Any help would be appreciated.

     

    Thanks,

     

    Dave

  6. Good morning,

     

    I'm looking for a way to do a complete/clean uninstall of Mastercam. If something goes wrong in the install, you may need to reinstall. Not a huge deal, but problems arise when you reinstall on a system that already has files/registry keys from a previous install. Are there any command-line arguments or settings for the Mastercam uninstaller that will completely remove every trace of Mastercam when it uninstalls? Registry keys, shared files, and my mcamx are all left over, but you should at least have the option to remove these. Does that option exist and I just don't know about it?

     

    Any suggestions would be great.

  7. I've put together a net-hook in Visual Basic 2010 Express and it works great. My issue is not with the coding, but what to do after it's done. I can manually copy the files out of the build directory and run them in Mastercam, but I'm looking for a better solution so I can give this utility to others and they can just run an installer.

     

    Looking at sites like this doesn't help because these are all tutorials for Visual Studio Pro or higher. This type of application is not available in Express. When I right-click on the project in the Solution Explorer, there is no "publish" option either.

     

    I could always write a .bat script to install this on other computers, but that is not as nice as running a .msi or .exe and I'm looking for something a little more "automatic".

     

    I built my net-hook on the template found here

     

    Any help or suggestions would be very appreciated.

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