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:

Mark Weber

Verified Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Mark Weber's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I'm unable to make an FT file work for a NEThook application I wrote in VS 2008 VB.net. It seems that the problem is that you can't embed the resources using 2008 VB.net the way that Mastercam expects to read them. When you add a resource file, it saves it as a .resx file in an XML format rather than a .resource file. Documentation says to use reseditor but that doesn't exist in VS 2008. I tried to save it as a .resource file but that still doesn't work because it's still an XML based file. Any ideas?
  2. Mick, thanks for your reply. I have to laugh at your description of the Messiah's baseball team preference. You're up in Connecticut right? Maybe your a fan of those guys that wear those red socks?
  3. Thanks much Roger. I actually got to the same place yesterday using similar code but discovered that it doesn't select them in any order but does select them in the same order each time. You told me the same thing above. I think it might retrieve them in the order they were created, I'll test that theory. I'm surprised that they don't each have an indentifier or index attached like Catia does. Maybe there is but it's just not available in the NetHook2.0 API. Once again, thanks so much for your response. Mark
  4. I'm trying to figure out how to use the AskForMultipleGeometry method. (Using X3.) So currently, I'm selecting just single geometry using the code below (VB.Net). UserParams.Line1 is an instance of a pre-defined structure, and is defined as a LineGeometry type and I can use all this to get the info I need from the geometry item selected: UserParams.Line1 = SelectionManager.AskForGeometry("Select a single line", OurGeometryMask) UserParams.EndPoint1 = (UserParams.Line1.Data.Point1) UserParams.EndPoint2 = (UserParams.Line1.Data.Point2) So this all works cool for all the different geometry like points, arcs, etc Now I want to use the AskForMultipleGeometry: Dim MultipleLines() = SelectionManager.AskForMultipleGeometry("Please select multiple lines", OurGeometryMask) Dim NumberOfLines As Integer = MultipleLines.Length Debug.Print(NumberOfLines & " lines are selected") This is really cool for telling me how many lines I selected but how do I loop through and get the data I need from each line in the order selected? Documentation says that the return for the multiple method is an array (container?). Do I have to use a For..Each..Next loop using the SearchManager.GetGeometry method and search for the selected items? Does the SearchManager search through the whole database? Any help would be appreciated. Also, I didn't find any documentation on the .Length property (used above) in the NetHook help file. Just saw it in the NetHook2 Example UserParams.EndPoint1 = (UserParams.Line1.Data.Point1) UserParams.EndPoint2 = (UserParams.Line1.Data.Point2)
  5. I don't know if you've already got this figured out but here's the deal. #2 comes from #5043-#116. #5043 is the current Z axis position at the spindle face in the current WCS (like G54, etc), while #116 is a common variable that should contain the probe tool length offset. It gets set in O9723 which is called by O9724 which is called by your O9833. Yea, I know it's deep :-) Anyway, if the probe does a nose dive, that means that you most likely have a bad number in #116. Try this, edit O9833 to put in an M0 right after #2=#5043-#116. When it stops, look at variables #2 and #116 and see what's up. If they look ok, it might be a read ahead problem.
  6. I'm going to be developing some C Hooks / Net Hooks on X3. I have a new hot-rod laptop running Vista 64b. The question is can I use Visual Studio 2008 with the X3 sdk without any serious issues or is it better to use VS 2005 with the XP OS? I have an XP desktop I can use but it would sure be nice to take my stuff with me when I'm traveling.

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