macros and mastercam

Recommended Posts

Hi, I was wondering if Mastercam has macro programming abilities similar to Autolisp for Autocad or CadL for Cadkey? 

Share this post

Link to post
Share on other sites

Yes, it does. VBScript is the available scripting tool. If you require more advanced capabilities than a script can provide, Mastercam has both a ".NET" interface (Net-hooks), and a full C++ API, if you really need access to "everything".

VBScript can create and/or manipulate geometry, and more. There is a VBScript help file that actually installs with Mastercam by default. The name escapes me offhand, but it is something like "script56.chm", or something like that...

Share this post

Link to post
Share on other sites

There are some templates included if you are running mastercam X6 or X7 in a folder called vb inside the shared folder and a help file called vbscript in the help folder. I used those to get started however the files don't seem to be present in newer versions. You could check out my post on a macro i am working on under the post processor development forum on this site i managed to assign some toolpaths and drill operations automatically.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

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