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:

Mike Crivello CNC Software Inc.

CNC Software
  • Posts

    35
  • Joined

  • Last visited

Everything posted by Mike Crivello CNC Software Inc.

  1. Hey again, From the Mastercam Extranet's main page, underneath the 'Developer' menu choose 'Downloads' from the dropdown . There should be a link there to download "NetHook_2.0_Examples.zip". Hope that helps... let me know if you guys have any more problems.
  2. To all NetHook 2.0 API Developers: I'm pleased to announce that today we've officially released the NetHook 2.0 API Samples & Examples Project. It's downloadable via Mastercam.com as a zip file of four different Visual Studio projects. Each one contains it's own text file ("Read Me First!!.txt") on how to install, set up, and use each of the projects. The first two projects are the Examples projects. This is a big collection of code on how to use different aspects of the NetHook 2.0 API. Most of it isn't functional in the sense that it doesn't do anything incredibly useful, but it is useful as a reference. The code is all heavily documented, and almost every aspect of the API has a file associated with it which will demonstrate how best to use and interact with that particular piece of the API. Of course, it's all been tested, and can just as easily be compiled and debugged against an installed version of Mastercam X2. And because there's no telling who uses C# .NET and who uses VB .NET, there's one version of the Examples project for each language. The second two projects are the Bolt Circle projects. Whereas the Examples projects didn't do much of anything useful, the Bolt Circle projects are great examples of real-life NetHook apps. The Bolt Circle functionality has historically been something that routinely gets re-hashed as a way to exemplify different versions of Mastercam APIs, so it seemed like a perfect app to include as an example. It is heavily documented, and should offer a great way for developers to see what a NetHook app can be. Just like the Examples projects, these also come in both a VB .NET version and a C# .NET version. Hopefully this will serve as a great way to get people looking to start with the NetHook API a helping hand in doing so. Feel free to post any feedback about them here or email the SDK Inbox with any questions, concerns, complaints... or even compliments. Happy coding!! [ 02-02-2007, 09:26 AM: Message edited by: Chris Bell, CNC Software ]
  3. Hey there, Since this has been bumped, is there any of this that you guys still want / need / would like to see?
  4. Hey guys, The NetHook API currently does not support Notes. So if you're dead set on using the NetHook API for whatever you're trying to do you probably aren't going to be able to access Notes in the database. However, we're always looking for ways to improve the NetHook API, and if this is something you'd like to see added, make a request to the SDK Inbox ([email protected]). I can say in all honesty that everything that gets sent in gets looked at, and the more feedback we get on the API the better we'll be able to make it. We don't always know what's important to you guys out in the developer community, so we're always looking for suggestions and ideas. Hope that helps...
  5. Hello again Jure, Sadly, you won't be able to mix the two APIs. Apps written for the NetHook 2.0 API (NH 2.0 for brevity) are different all the way down to the NH 2.0 app class and the way Mastercam handles the two types of NetHook apps. The way you setup your app should be similar to the way you set up your old NetHook apps, however - the only thing that has changed in that regard is the name of the class. All you have to do with the NH 2.0 API to write the simplest of apps, once you've added "NETHook2_0.dll" as a reference to your project, is derive from the 'NetHook2App' class and override the 'Run' method. Here's some code for a Hello World type of app that will hopefully be enough to get you started (written in C#). code: using System; using Mastercam.App; using Mastercam.App.Types; public class HelloWorldApp : NetHook2App { public override MCamReturn Run(int param) { DialogManager.OK("Hello World!!","Hello World App"); return MCamReturn.NoErrors; } } I'm afraid the explanation on how to use the NH 2.0 API's implementation of geometry transforms has to be preceded by an explanation of the NH 2.0's brand new database system, so I'll save that for another thread. Hopefully this is enough to get you started though, and if you have some more questions down the road about geometry specific methods (or anything else for that matter) I'll be happy to answer those too. Good luck... !! P.S. A quick documentation hint: we shipped a full suite of fairly good documentation associated with the NETHook2_0 assembly that can be read in Visual Studio's Object Browser. If you use the Object Browser to select the NETHook2_0 assembly and explore the API a little bit you'll find that almost everything in the API is documented pretty well. Hope that helps.
  6. Hello Jure, The .dll you're referring to is the .dll for the new NetHook 2.0 API shipping with X2. There are a number of drastic changes in this version of the API that we hope should make development for NetHook apps much easier in the future, but in the short term converting apps to target the 2.0 API may require a good deal of re-writing. We've used the new API internally and I think you'll find the same thing we did - there is a small learning curve with the NetHook 2.0 API, but it's much easier than the old one once you get the hang of it. You're correct about the NetHook 1.0 API though - although there may be one or two bug fixes, the NetHook 1.0 API is really only being included for backwards compatibility and will probably see no more forward development. As for the documentation, we're aware of the lack of documentation and examples for the new NetHook API in X2. There are some things in the works to remedy the shortcomings, and hopefully we'll have a few things to present to the Mastercam development community soon. Don't worry - help is on the way. :-)
  7. Hey guys, MasterShake, it would seem that you are absolutely correct. Post processors can run CHooks, but are not currently set up to run anything else (including VBScripts or NetHook apps).
  8. Jure, First off, Lathe is not specifically supported in the NetHook. That's not to say it won't work - whatever you're doing may work fine, but I wanted to start off with that disclaimer. Now, regardless of the operation or the machine the chain should be reversing. Would you mind posting some of your code so we could take a look at it and maybe iron out what's going wrong? And if you could give us a few more details that could help a lot too - things like whether the operation is getting created at all, whether the chain just isn't being reversed, or whether you're running into some other sort of problem.
  9. Hey guys, I just wanted to let you know that there will in fact be a new NetHook API with Mastercam X2, and it will be able to do what you're asking with regards to the setting of Job Setup Stock sizes and origins. With regards to the question of Lathe stock setup parameters, the reason they don't work is because Lathe toolpaths define their stocks differently. The new API will have the ability to modify some general Lathe parameters, but there is no explicit Lathe support in the old or the new NetHook API.

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