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:

Peck amount with NET-Hooks


Recommended Posts

I am trying to pass several drill parameters, the most important being the peck amount, to operations I create with a NET-Hook in C#.

But NET-Hooks don't seem to provide any means to define the peck amount.

At least I can't find anything about it in the reference guide.

 

Now I am suspecting that other operations will also have restrictions as to which parameters I can define in a NET-Hook.

Is that correct and I should have switched to C-Hooks instead of C# NET-Hooks (sigh!)?

 

Any advice greatly appreciated...

Link to comment
Share on other sites
But NET-Hooks don't seem to provide any means to define the peck amount.

I saw this as thought of course you should be able to...

and then I dug deeper and found that you cannot. ;(

I will log a request that the DrillOperation support in NETHook API gets a look over and improved.

*Any changes when they come will happen after X6.

 

Now I am suspecting that other operations will also have restrictions as to which parameters I can define in a NET-Hook.

The functionality in the NETHook API is a sub-set of what you can do in a CHook.

 

Is that correct and I should have switched to C-Hooks instead of C# NET-Hooks (sigh!)?

Which method you use (NETHook and/or CHook) really depends on what functionality your AddOn will require to accomplish its task.

Link to comment
Share on other sites

The functionality in the NETHook API is a sub-set of what you can do in a CHook.

...

Which method you use (NETHook and/or CHook) really depends on what functionality your AddOn will require to accomplish its task.

I noticed that even the equivalent for the VBScript 'AskForFilename' is missing in the NETHook API.

 

Will have to jump on the CHook train (again).

So much changed since good old Watcom...

(Big sigh!)

Link to comment
Share on other sites

'AskForFilename' ?

 

From Visual Studio's Object Browser when browsing NETHook2_0.DLL ->

 

public static string Open()

Member of Mastercam.IO.FileManager

 

Summary:

This is used to prompt the user to select a file to open within Mastercam.

 

Returns:

The full path of the opened file if the user successfully chose a file to open and a null value if not.

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