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. To get started go here and download the Introduction to VB.NET NET-Hooks document as this will explain step by step how to start developing NET-Hooks with Visual Studio Community Edition 2015. Once you have set that up and working I recommend you open all the project examples and step through them to become familiar with the NET-Hook API and from there you should be able to get started. If you require additional help please post questions here
  2. You should be able to login once registered, please post on our official forums at mastercam.com so that the webmaster can record it and address it for you, thanks.
  3. Edit: I am still jet lagged and can't read apparently Thread Mill is available in the NET API
  4. I have added a Mastercam C# Project Template for Visual Studio 2015 this includes the free Community Edition. To install it open Visual Studio select Tools->Extensions and Updates->Online and search for Mastercam. I plan on fine tuning the template but it will at least stop you from having to manually re-create all the boiler plate stuff just as previous template would. You will likely need to re-add the project reference to the NETHook3_0.dll but it is all explained in the included readme text file. I'll try to get a VB.NET template uploaded later tonight.
  5. Running Windows 10 on my home dev machine and I really like it, Mastercam running fine.
  6. The VBScript API was released with Mastercam Version 9 more than 10 years ago and unfortunately the Thread Mill operation support was never implemented. If you absolutely need the Thread Mill operation functionality then I would recommend you create Visual Basic.NET NET-Hook as Thread Mill operations are supported. There is a getting started document and example projects at Mastercam.com, you will also need to use the free Visual Studio Community Edition if you do not have Visual Studio installed.
  7. The process you describe seems similar to he ATP add-on process, that is open a file and import (or create) operations and post all on the fly. I would look into a NET-Hook first to see if it's doable, it seems to be from what you are asking.
  8. I have updated the NET-Hook slightly to remove any invalid characters that might be on a level so that the file can be saved, the invalid characters are replaced with an underscore '_' fred*** becomes fred___ X8 and X9 NET-Hooks are attached as is the X8 source. Remember to unblock the dll by right clicking and go to properties and make sure to uncheck unblock You can add a new menu or toolbar for the NET-Hook by going to Settings->Customize->Category NETHook (see image) X8_SaveLevelsToDrawings.zip X9_SaveLevelsToDrawings.zip X8VBSaveLevelsToDrawings_Source.zip
  9. Glad to help. If there are particular examples you need that are not already covered please feel free to email us with your suggestions.
  10. This should be possible with a NET-Hook I believe. Depending on how much flexibility you need you might want to create a library of hinges and locks and merge them into the applicable position of a door.
  11. The NET-Hook API was implemented for C# and VB.NET programmers and works with Mastercam Mill and Mastercam Router. If you are looking to develop more advanced add-ins or need to target Lathe or Wire then the C-Hook SDK would be required. if you can tell me what it is you are planning to develop I should be able to tell you whether you need the .NET API or C-Hook SDK
  12. Jason, Don't use the Express version it doesn't support add-ins among other things, grab the Visual Studio 2015 Community Edition which is a free professional level version. The Templates for VS2015 are not uploaded yet but I hope to have them done soon. In the mean time you can download the NET-Hook sample projects from mastercam.com as well as some examples posted in various threads here to see how easy it is to hit the ground running.
  13. NET-Hooks and C-Hooks are version specific and I don't have X8 on my development machine right now, give me a day or two and I'll install X8 and build a version for you guys still on X8.
  14. I am currently attending the AWFS show in Las Vegas and wont be back in the office until the middle of next week. I will follow up once I return.
  15. Do you have a sample drawing and the report (if its not one we ship) you can share and I'm more than happy to take a closer look
  16. Yep I have seen it, it appears to be a bug with our output and it is being investigated
  17. If you are near Las Vegas the AWFS show is starting next Wednesday through Saturday and there will be a metric tonne of routers on display from machine builders world-wide. Oh and I'll be there at the Mastercam booth so make sure to stop by if you or someone from your organization is attending.
  18. I found an old VBScript that I modified to import a pocket operation, two contour operations and a drilling operation. The attached zip file contains Mastercam X8 files, one drawing with operations and one without, a VBScript and a router operations library. Place the operations library in \Users\Public\Documents\shared mcamx8\router\OPS Place the ToolpathDoor.vbs script in \Users\Public\Documents\shared mcamx8\vb Place the drawings anywhere Open the drawing door_clean.mcx-8 Run the script, Settings->VBScript and select the ToolpathDoor.vbs Once the VBScript has completed the drawing will have a rough pocket and a finish contour operation applied to the inside contour, a counter operation around the outside contour and 4 holes drilled. this should be enough to get you going in the right direction. VBScript_ImportOperations.zip
  19. If you are looking to develop addin-ins for Mastercam you might also want to consider Visual Basic .NET NET-Hooks, we have sample projects and and an Intro document at mastercam.com
  20. I think it might make sense to add some options to the process, for example: Ignore Hidden Levels Don't set Main Level If anyone has any other requests let me know and I'll see what I can do over the weekend.
  21. I have noticed that I added a call to LevelsManager.SetMainLevel(level); and we really don't need it and the downside is if you have 100's of levels you will take quite a performance hit. I'll remove it and try some other tweaks to increase performance and upload a new NET-Hook shortly.
  22. I made some tweaks to he NET-Hook from the feed back. The file name now includes the level name and the level number to avoid any duplicate name collisions. I also added a different tool bar icon. I also wrote the project in Visual Basic.NET and C# and I'll be attaching them to this post shortly. SaveLevelsToDrawings.zip VBNET_VS2013_Project.zip CSharp_VS2013_Project.zip
  23. Bill if you could share with me the report and the drawing I can take a closer look

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