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:

Getting aCustom Tool Profile from a Nethook


Recommended Posts

I have a MasterCAM part file which uses custom tool profiles. In my NetHook, how do I determine that a tool uses a custom profile, how do I find the name of the file containing the custom profile and how do I extract the profile from the file.

 

Thanks in advance

Link to comment
Share on other sites

There is not a way to do what you're asking in the NETHook.

It would be possible create a CHook type DLL that could gather the 'custom tool' file name(s) and the NETHook could call into the DLL (using P/Invoke) to retrieve that data.

 

Example: The Zip2Go utility

The front-end is a NETHook, but to generate some of the reports that Zip2Go creates requires digging deeper than you can with a NETHook.

Note in the CHooksZip2Go folder the Z2GData.dll which is a "worker" CHook DLL that the Zip2Go.DLL (NETHook) calls into to get the desired data.

* And one of those pieces of data just happens to the the filenames of any custom tools referenced in the operations

Link to comment
Share on other sites

Ian,

 

Is the source of Zip2Go available? => NO

 

Do you have any example source code on how to do this?.

=> I can put one together, that shows how to scan thru all of the operations in the Op. Mgr. and creates a list of all the 'custom tool' references.

This will be a NETHook/CHook (2 DLLs) solution.

 

Mail me (sdk at mastercam.com) with an address that can accept a ZIP file attachment and when I have something I'll send it over.

 

What information this sample will supply to you is a list of the 'custom tools' that you can loop thru from your NETHook code.

 

A 'custom tool' can be either;

1: On a Level in the current MCX part file.

2: A pathname that points the the custom tool shape in an external MCX file.

 

Do you also have need to know the 'id' of which operation(s) reference a custom tool?

Link to comment
Share on other sites
  • 2 weeks later...

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