Search the Community
Showing results for tags 'api'.
-
Visual Studio 2019 project templates for Mastercam NET-Hooks are now available for C# and VB.NET Installation: From Visual Studio select Extensions->Online->Search->Mastercam Restart Visual Studio. Usage: Start Visual Studio 2019, from the Create new project dialog type Mastercam in the search field leaving all other filters off to show the templates. A later update will add tags to the templates for easier selection but right now they are not implemented. Once selected the template will show in your project type MRU Default Project: A default WinForms project is created with documentation on how to get up and running debugging a NET-Hook with Mastercam. The project includes some sample code. If you prefer a WPF project, delete the MainView and add a new WPF User Control, rename the Control type to Window. Replace the code in the Main.cs Run method with the following code assuming you have named your Window MainView. // WPF var view = new MainView(); // Get the handle to the non-WPF owner window var ownerWindowHandle = Mastercam.Support.UI.MastercamWindow.GetHandle().Handle; // Set the owned WPF window’s Owner property with the non-WPF owner window var helper = new System.Windows.Interop.WindowInteropHelper(view) { Owner = ownerWindowHandle }; view.Show();
-
For those unaware there has been a NETHook included as part of Mastercam (for quite sometime) that allows batch processing of layered dxf, dwg and mcx files utilizing machining strategies. A machining strategy is a list of level names that are associated (read: mapped) to Mastercam operations. There are two new tutorials that walk you through two examples of using this NETHook, one for Router (kitchen cabinets) and one for Mill (mold bases). Feel free to reply to this thread for any ATP related questions or requests. http://www.mastercam.com/en-us/Support/Tutorials/Mastercam
- 3 replies
-
- Automation
- NETHook
- (and 6 more)
-
Anyone download the beta yet? And, more specifically, anyone here have a chance to see 'whats new' in the API?
-
MasterCam X7 32-bit, VbExpress 2010, Is there a way to open files "quietly" using the nethook API? Im using the GetOpGroupDataInExternalFile to scan hundreds of existing files for specific Tool/Op data. I love this, its a LOT faster than loading thru the Interface. When I see a possible candidate, I have to open the file and scan thru it's operations to see if the remaining Op/Tool settings are what I was looking for. But if I open an X6 or older file, I get that series of Dialogs wanting me to upgrade the control file ("The control file being read is from a previous version of Mastercam") and the user has to, at the very least, close 6 dialog boxes before the Op data can be read, and that would be for every file opened thru the interface. Is there a work-around ? TIA
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.