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:

Recommended Posts

Hello all,

I am currently using VB studio 2015 and I am in need of a little guidance.  This is more a programming issue than anything related to the Mastercam API.

 

If I sort through machining  operations and get the slot number of each tool, what is the best way to gain access to that tool for the purpose of changing feeds, speeds, an so on?

If I create a collection of all tools, can I pull out the tool that I want by knowing the slot number or tool number?

Do I need to work through a FOR / EACH loop?

Any ideas and help is most appreciated.  I am still learning.

 

Steven

 

Link to comment
Share on other sites

We always need to know -> what version of Mastercam?

The way to positively identity a Tool in the local part file's tool list is -> by its Slot number

What types of Operations are you manipulating?

The NET-Hook API itself does not support all operation types.

But... There the the ToolNetAPI (starting in 2017) that can (should) be used to manipulate tools via a NET-Hook Add-In.

You can submit your detailed info to SDK <at> mastercam <dot> com

This forum is not sufficient fore doing detailed API support.

Link to comment
Share on other sites

The ToolNetApi.dll is installed with Mastercam.

You'll find it in the main Mastercam ("\Program Files\mcam2018" in this case) folder.

You add a Reference to it in your NET-Hook project, just like you do for the std. NET-Hook API (NETHook3_0.dll)

There's also the ToolNetApi.xml in there, so you have Intellisense .

If you need details on how to do something specific, I should be able to round up some sample code using the TloolNetAPI.

*Be sure to send your request to SDK <at> mastercam <dot> com

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