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