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:

Mick from CNC Software Inc.

CNC Software
  • Posts

    1,012
  • Joined

  • Last visited

Everything posted by Mick from CNC Software Inc.

  1. Check that site often as I try to add at least one new example per month. If you have a request for a specific example just ask.
  2. There is an introduction document and a number of example projects at Mastercam.com under the 3rd Party menu. Let me know if you have any issues accessing them as they should be available to everyone.
  3. I tried a few things but it appears that Mastercam returns immediately on the Post FT Command call. I'll think on it some more.
  4. PMDc, To set the main colour you can just call: SettingsManager.MainColor = 224; The other two commands can be invoked using their FT commands located on the Mastercam.FT file which is in the root of Mastercam. Be careful not to change anything in this file.
  5. No worries we all suffer from the same fate when we don't work on something for any length of time If you haven't already I would highly recommend downloading the Introduction to NET-Hooks document I wrote a while ago that I have updated recently on Mastercam.com. I also just updated the C# NET-Hook project template for VS2015 that you can download and install from within VS by going to the Tools->Extensions and Updates... menu and searching for Mastercam in the Online section. There is a VB.NET one but its just lacking some updated documents but works fine. I have also been adding some new example projects on Mastercam.com so you might want to grab those as well while you are there.
  6. I away from my desk right now but I believe there is now a refresh or update method in the LevelsManager, taker a look in the object browser for the exact name.
  7. You can create a new tab and or group to the ribbon bar and then assign the methods you exposed in your FT file to it, you just don't see the category there you see the actual method names.
  8. David, The Category only applies to the Context Menu and shows up fine as shown in the attached image. To add a second line of text to a tool tip you need to hold SHIFT+ENTER when you add the string to the resource file as shown in the attached image (I didn't know this either)
  9. I think you should be fine, just update the NETHook3_0.dll reference although VS 2015 Community Edition is free for teams of less than 5 and is essentially a Professional Level.
  10. David, I am not sure on the additional text field in the tool tip, I will get back to you on that. In regards to the Category it is working and I have not heard of any issues. If you can share your FT file please do.
  11. Karl, Need a little more info to go on. What version of Mastercam? Is this a new script or has it worked fine in the past? Can you show the entire method that contains this code. Thanks
  12. Mastercam will be attending IWF Atlanta in booth 4429 if you are attending be sure to stop by and say hi, I shall be there.
  13. Soymilk, You should be able to see how this is done if you take a look through the different examples, any questions ask away.
  14. All examples have been updated for 2017. I have also added a new Import Operations example. Any questions let me know.
  15. The Import Operations example that should be uploaded tomorrow has drilling.
  16. Soymilk, The ChainManager example shows how to create geometry and create toolpaths. Is there anything specific you need examples of as we are always looking for example requests. Having said that I will be updating all the current examples this to 2017 this week and I also added a new example on how to import operations and apply them to geometry, I will reply to this post when they are available.
  17. I am working on a new import operations example project and should have something uploaded in the next couple of days. I will let you know when its available.
  18. JCDFCM, It appears that importing a thread mill operation is currently broken in X9 and 2017 I'm afraid. It has been fixed internally but I am not sure if it will be part of any maintenance update for 2017 but I will see. I apologize for any inconvenience caused. Edit: I would like to add the we are no longer actively developing our VBScript API and it will be deprecated at some point. The .NET API is the recommended choice in place of VBScript.
  19. I updated the script to import drilling and threading, drilling works fine but threading is failing, I'll dig deeper. '// Description: Test calling up an executable then import an operation '// and modify it's feed, speed, and op comment. '// Comments: Using version X9 ' Constants Public Const DEF_NOTEPAD = "C:\test\notepad.exe" Const OP_FILE = "C:\Users\Public\Documents\shared mcamx9\mill\Ops\Threadmill_Jc.operations-9" Const OP_NAME = "Thread Mill" Const OP_NAME_DRILL = "Drilling Operation" Const OP_COMMENT_DRILL = "Drilling Operation" Const OP_COMMENT = "Threadmill 1/4-20 3x" ' Start Script Call Main() Sub Main() Dim FSO, strShell, overrides Set FSO = CreateObject("Scripting.FileSystemObject") strShell = DEF_NOTEPAD Call ShellAndWait (strShell, True) Set overrides = New McOverride With overrides .FeedRatePercentOn = False .FeedRate = 80 .SpindleSpeedPercentOn = False .SpindleSpeed = 80 End With Call ZeroPts Dim success success = StartDBSearch(mc_alive, mc_pointtype) If success Then Do Dim Point Set Point = New McPt If GetPointData(GetEntityEptr, Point) = True Then Call AddDrillPoint(Point.X, Point.Y, -1) ShowString("Adding Point X:" + Cstr(Point.X) + " Y:" + Cstr(Point.Y) ) End If Loop While NextDBSearch End If If MakeOperationFromName(OP_FILE,OP_NAME_DRILL,OP_COMMENT_DRILL, overrides) <> mcOPERATION_INVALID Then ShowString("Drilling complete") Else ShowString("Could not apply Drilling toolpath") End If 'If MakeOperationFromName(OP_FILE,OP_NAME,OP_COMMENT, overrides) <> mcOPERATION_INVALID Then ' ShowString("Threadmilling complete") 'Else ' ShowString("Could not apply Threadmilling toolpath") 'End If ' -- Clean up Set FSO = Nothing End Sub
  20. I'll take a look this evening when I get home from work. In the meantime if you could share your operations library that would be helpful so that we are all on the same page, thanks.
  21. JCDFCM, If you do not have any geometry selected the import operation method will fail as it doesn't know what to do with the operations.

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