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 George

CNC Software
  • Posts

    629
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Mick George

  1. Hi, You should not be using the chooks folder, you will want to move your add-in and ft to the Shared or My Mastercam Add-Ins folder. You will need to edit the FT path and remove the chooks folder in the path.
  2. You can customize the ribbon and add it, it is very basic in 2022 but it is there.
  3. Ah yes 2022 was kind of a preview so you can go ahead and create the folder in Shared and use that. You should find some samples online, you can also take a look at the NET-Hook samples as they both use the same API.
  4. There is a NET-Script folder in Shared that you can use, there should be a few sample scripts in there also.
  5. NET-Scripts are replacement for VBScript. I believe NET-Script was first added to Mastercam 2022. VBScript is deprecated and will be removed completely from Mastercam 2025. NET-Scripts use the same API as NET-Hooks but can be created using the inbuilt script editor. There are several short video introductions to NET-Script on the Mastercam forums.
  6. John, There are some script examples installed with Mastercam 2023 under C:\Users\Public\Documents\Shared Mastercam 2023\NET-Scripts we also have more examples on our website under the 3rd Party Developers section.
  7. With Mastercam 2022 and beyond it is no longer recommended to install to the chooks folder due to elevated permissions requirement. Replace the post build step as follows, assuming these paths match your paths: IF NOT EXIST "C:\Users\Public\Documents\Shared Mastercam 2022\Add-Ins" MKDIR "C:\Users\Public\Documents\Shared Mastercam 2022\Add-Ins" copy "$(TargetPath)" "C:\Users\Public\Documents\Shared Mastercam 2022\Add-Ins\$(TargetFileName)" copy "$(ProjectDir)Resources\FunctionTable\$(TargetName).ft" "C:\Users\Public\Documents\Shared Mastercam 2022\Add-Ins\$(TargetName).ft"
  8. There is no SDK required for the .NET API. We only have VS2019 templates for .NET at the moment, we plan to have VS2022 templates soon. If you have both VS versions installed you can create the project in VS2019 then open it in VS2022.
  9. Take a look at the ToolNetApi, there are a couple samples on our site and a couple here if you run a search.
  10. Please post your request on mastercam developer forums so we can assist.
  11. Please repost on the official Mastercam forums and we can take a look.
  12. Karl, Please repost on our official forums so that we can take a look, Thanks, Mick
  13. There is a VBScript.htm file located in the Help folder if I recall, you can take a look through that as I am sure there is a way to check levels, entity colours and the like.
  14. Scan the XML file for the information you need to verify it is there. Once you identify the data you can reference the tag.
  15. NiravP, For NET-Hook development there is not additional SDK to install as there is an assembly installed with every seat of Mastercam that you reference in a .NET class library project to gain access to the API. If you do not have access to a seat of Mastercam yourself you will need to talk to the client for access or contact [email protected] with your and your clients details and I can pass the information on the the applicable people to help you. We do have several project examples on our website under the 3rd Party Developers portal and the [email protected] mailbox is our API support mailbox. We also have developer forums on our website.
  16. You can search the XML file that is created by the tool list call, from the setup sheet dialog hold the CTRL button and left mouse click the green check button to have Mastercam generate a full XML file. The file will be located in your C:\Users\Public\Documents\Shared Mastercam 2022\common\reports\XML folder and you can search the tags. You can also take a look at the report help file and see the tag section.
  17. Thomas, Make sure to select the drop down to filter out the examples list. FWIW many of the 2017-2020 examples will works just fine in 2021+ other than the ToolNetApi examples which have a couple namespace breaking changes.
  18. Ah yea that link is no longer valid, I did report the post to update the link as I am unable to edit it. https://my.mastercam.com/Communities/3rd-Party-Developers/NET-Hook-Downloads is the correct link. Thanks for catching that. I'll see what I can do with more tool examples.
  19. There is a tutorial from 2018 at https://my.mastercam.com/Learning/Tutorials/Mastercam that walks you through using setup sheets if you haven't seen it. There are also a few threads for setup sheets in our https://kb.mastercam.com/Knowledgebase.aspx just search for 'setup sheets'
  20. A presentation from a couple years ago some of you might find helpful. Mastercam Setup Sheet Customization Using Our .Net API
  21. Did you ever get an answer to this? If not, if you open the image in an image viewer is it actually that small? The image control used in the active reports has a size mode property, by default it is set to Zoom, you could try the Stretch or Clip setting to see if that gives you the view you are looking for.
  22. I'd contact QC per Peters' recommendation.
  23. Not sure if you are aware or you are doing this for a specific need there are file open and file save dialogs that are simple to implement.

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