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:

Search the Community

Showing results for tags 'NET-Hook'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Mastercam Forums
    • Industrial Forum
    • Post Processor Development Forum
    • Educational Forum
    • Woodworking Forum
    • Machining, Tools, Cutting & Probing
    • 3D Printing

Categories

  • Mastercam Demo Software
  • Files Referenced in Books and Videos
    • Instructor Files
    • Mastercam X7
    • Mastercam X6
    • Mastercam X5
    • Mastercam X4
    • Mastercam X3
    • Mastercam X2
    • STEM
  • Free Book Samples
    • Mastercam 2020
    • Mastercam 2019
    • Mastercam 2018
    • Mastercam 2017
    • Mastercam X9
    • Mastercam X8
    • Mastercam X7
    • Mastercam X6
    • Mastercam X5
    • Mastercam X4
    • Mastercam X3
    • STEM Curriculum
  • Mastercam eBooks (PDF)
    • Mastercam 2023
    • Mastercam 2022
    • Mastercam 2021
    • Mastercam 2020
    • Mastercam 2019
    • Mastercam 2018
    • Mastercam 2017
    • Mastercam X9
    • Mastercam X8
    • Mastercam X7
    • Mastercam X6
    • Mastercam X5
    • Mastercam X4
  • Mastercam Documentation
    • Brochures
    • Press Releases
    • Tips & Guides
  • Tools
  • Post Processors
    • Post Processor 'How To' Info
    • Mpmaster (all versions)
    • Mplmaster (all versions)
    • Application Specific Posts
    • Educational Post Processors
    • Post Processor Request Forms
    • Post Processor Feature Checklist Forms

Product Groups

  • Sitewide Subscription
  • Books
    • Older Versions (No Demo Software)
  • eBooks (PDF)
    • Mastercam 2023
    • Older Versions (No Demo Software)
  • Multimedia
    • Older Versions (No Demo Software)
  • Clearance
  • eCourses
  • eCourses

Categories

  • General Mastercam
    • Hasp / Sim License Articles
    • Nethasp
  • Lathe
  • Toolpaths
    • FBM Drill
    • FBM Mill
    • Dynamic Milling
    • Contour
    • Drill
    • Pocket
    • Face
    • 2D Highspeed
    • Engraving
    • Surface Rough
    • Surface Finish
    • Surface High Speed
    • Curve 5 axis
    • Drill 5 Axis
    • Swarf 5 Axis
    • Multisurface 5 Axis
    • Flow 5 Axis
    • Rotary 4 Axis
    • Port 5 axis
    • Advanced Multiaxis
    • Circle Paths
    • Circle 5 Axis
  • Wire EDM
  • Art
  • Post-Processing
  • Editors & DNC
  • Add-ons + Chooks & Nethooks
  • Windows, PC & Hardware Troubleshooting
    • Windows Issues
    • Videocards
    • Network & Filesharing
  • Multiaxis
  • eBooks

Blogs

  • Mastercam Training Solutions
  • eMastercam Community
  • Reseller Blog
  • Future of CNC Manufacturing Education
  • Mastercam Xtras
  • Latest News

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Interests


Location


Mastercam SIM Number


AIM


MSN

Found 7 results

  1. A presentation from a couple years ago some of you might find helpful. Mastercam Setup Sheet Customization Using Our .Net API
  2. 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.
  3. 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();
  4. Hello eMastercam, I've been working on a pet project that I think could be beneficial to some Mastercam users. Quick Parameters is a NET-hook that consists of a single modeless window displaying a subset of the selected operation's parameters. **Please note, this only works for operations that the NET-Hook API knows about. This means that it will not work on lathe or wire operations. To install, copy the files from the QuickParameters.zip archive attached to this post to the following locations; Copy 'Xceed.Wpf.Toolkit.dll' to the Mastercam install directory, typically 'C:\Program Files\Mcam2019' Copy 'GalaSoft.MvvmLight.dll', 'QuickParameters.dll', and 'QuickParameters.ft' to Mastercam's chook directory, typically 'C:\Program Files\Mcam2019\chooks' You can grab the source on my Githib. A brief gif showing it's functionality. Right-click to customize the display colors. Feedback of any kind is always helpful. QuickParameters.zip
  5. Hi All, I just wanna to share my NET-Hook what I developed for our community. I always missed this possibility from MCAM, to store custom notes, comments, data, etc THEN post them to NC code. Or simply just store some info in a MCAM part file. This NET-Hook will store then suggest your last 20 inputs, separately in each field. You can use it for store your custom data, info, programmer, customer, drawing, whatever you want... Not necessary but you can also output them to any NC code. Copy all the 3 files from ZIP to Mastercam CHOOK folder, then you good to go. Also I attached a sample post processor, look for "pNote2Post" postblock and calling of this postblock in "pheader$" section. This postblock will set "sN2Pfield_1...sN2Pfield_7" string variables based on your note fields in MCAM file. At first run please look for settings to set your custom fields. Any comment, suggestion, idea or bug report are welcomed! https://app.box.com/s/u8cdt63klci04aoogvqoyuafbnitl765 Main window: Settings: YouTube: https://youtu.be/SBOgD3HoV60
  6. Short question for NET-Hook development. We can get several info about the operations in the Mastercam. For example in VB: Dim SpindleRotation As String = Mastercam.Support.SearchManager.GetOperation(CurrentOperation).SpindleSpeed.ToString But, how to get the "current operation" from the backplot Window? In previous example - how to get the right value for var CurrentOperation. Thanks, Crnko I would like in a new window which is the part of the NETHook module, show the Spindle Speed for the current active operation in Backplot window. I can get the Spindle Speed for any relevant operation, but how to synchronize Backplot and new windows? It should shows the data for the same operation. So how to get a number / id for current active operation in Backplot window (or simulation)? In my example Dim SpindleRotation As String = Mastercam.Support.SearchManager.GetOperation(CurrentOperation).SpindleSpeed.ToString variable CurrentOperation should have the number/id of the current active operation in Backplot window. How to get this value for Current operation? Crnko
  7. HI Guys! I just realized now, that after many C-Hook and NET-Hook, I always made a straight forward runoffs without any interactivity between Mastercam and my app. They always run in one direction: Set all stuff -> User input -> Draw and/or Draw -> Import OPs Now I working on a project, which asks for geometry from user and after selection it needs to be to return to my Windows Form. What I would to do (and I did halfway) after pushing a button on my Form it should be minimize/hide, then Mastercam ask for a geo then return to my Form (maximize to original size or unhide). Code for Selecting a geo and for button is OK, no problem with that. But when I push the button, Mastercam ask for a geo but I can not to select any because my Form remains and not allow me to select anything in MCAM. I found many possible solution for this issue, but which is the best and safe practice? Thank you for any input! Visual Basic, VS Express 2013, MCAM X7, NET_Hook3_0 Private Sub LineSelect_Click(sender As Object, e As EventArgs) Handles LineSelect.Click Dim GeoMask As GeometryMask = New GeometryMask(False) GeoMask.Lines = True Dim SelectedGeo As Mastercam.Database.Geometry = SelectionManager.AskForGeometry("Select one line", GeoMask) End Sub

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