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:

Controlling Mastercam from External Program


Recommended Posts

This may be a dumb question but is it possible to control MC from an external program? Or is the only solution to create a c-hook / nethook to run inside mastercam? For an example we can use VB to CreateObject("Wscript.application") to connect to the windows scripting engine. Then use the object to do some useful work. Sorry if I did not use the correct terminology but I hope the question is clear.

Thanks

Karl

@ CP-Carrillo

Link to comment
Share on other sites

Karl,

 

You can adding command-line arguments like a file to open as well as a C-hook to run. You can even use /exit to terminate the Mastercam session when it's done.

 

For instance:

 

C:\Program Files\MCamX8\mastercam.exe myLocalPart.MCX-8 trimetric.dll /exit

 

You can do this from an external program you've written by making a call which launches a process.

Link to comment
Share on other sites

Most of the command-line arguments cover licensing (using /M3, for instance, to check out a Mill Level 3 license from your NetHasp at start up), but as you noted you can use it to open a file or launch a C-hook... as well as loading a .CONFIG file.

 

I don't know where all this is documented, but if you'd like to learn more, take a look at the MastercamLauncher.EXE - it doesn't describe the arguments per se, but lets you create shortcuts based on licensing choices. and you can then look at those shortcut properties.

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