Search the Community
Showing results for tags 'visual studio 2019'.
-
We have published new CNC Software official Visual Studio project templates for Mastercam. You can download and install via the links below or from withing Visual Studio search online extensions for "Mastercam". VB.NET NET-Hook Visual Studio 2017 and 2019 project templates C# NET-Hook Visual Studio 2017 and 2019 project templates C++ C-Hook Visual Studio 2017 and 2019 project templates Each .NET project template contains a Wizard interface to allow you to target any installed version of Mastercam and optionally add additional Mastercam API's (ToolNetApi, SimAccessManaged, etc) The C-Hook project templates allow you to select from 3 different C-Hook project types and target any installed C-Hook SDK kit. If you have any questions or suggestions please let us know.
- 10 replies
-
- 1
-
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();
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.