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

In my NetHook I need to compare tools from operations (Mastercam.Database.Tool) with tools from the tool library (CNC.Tool.Interop.TlTool).

e.g. I want to compare the name -> OperationTool.Name = TlTool.Name
so far good, but if I want to compare the diameter?
OperationTool.Diameter = TlTool.? Gaugediameter?
Gaugediameter always returns 0 for me
and if I want to compare the ToolType?
OperationTool.ToolTypeID can be compared, but in TlTool ToolTypeID is only a GUID.

So how can I convert a TlTool to a Tool to compare parameters, or what are the comparable parameters?

Thanks in advance for any help

PS: I use Mastercam 2022

Link to comment
Share on other sites
4 hours ago, MKTech said:

In my NetHook I need to compare tools from operations (Mastercam.Database.Tool) with tools from the tool library (CNC.Tool.Interop.TlTool).

e.g. I want to compare the name -> OperationTool.Name = TlTool.Name
so far good, but if I want to compare the diameter?
OperationTool.Diameter = TlTool.? Gaugediameter?
Gaugediameter always returns 0 for me
and if I want to compare the ToolType?
OperationTool.ToolTypeID can be compared, but in TlTool ToolTypeID is only a GUID.

So how can I convert a TlTool to a Tool to compare parameters, or what are the comparable parameters?

Thanks in advance for any help

PS: I use Mastercam 2022

You will need to repost this on the official Masercam forum to get support , you may also want to look at the toolnetapi example under nethook downloads from the 3rd party developers section on mastercam.com as it likely will answer your question.

I also attached a  project with some toolnetapi example on a similar post on mastercam.com, its one of the most recent posts.

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