Search the Community
Showing results for tags 'visual studio'.
-
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();
-
Version 1.0
460 downloads
This template will allow you to create a Mastercam C# NETHook class library project in Visual Studio 2013. The NETHook API referenced by default is the new NETHook 3.0 API available with the release of Mastercam X7, however, you should be able to reference the current NETHook 2.0 API with Mastercam X6, just remove the existing project reference and select the appropriate NETHook assembly (dll) located in the root directory of your Mastercam installation. Note that this project targets the .NET framework 4.0 When compiling make sure the configuration for the project is set to x64 Once installed you will be able to create a new NETHook project from the New Project dialog. Any questions should be asked here.Free-
- Visual Studio
- C#
-
(and 2 more)
Tagged with:
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.