Search the Community
Showing results for tags 'form'.
-
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
- 9 replies
-
- VisualBasic
- Form
-
(and 1 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.