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:

MasterCAM X vbscripts


Recommended Posts

Most of my vbscripts written for V9 do not work in X. I'm having problems with AskForEntiy() in particular.

 

Are all the VBscript commands (from V9) offered in X, or some of them are not supported anymore?

Many previously supported commands are missing in the latest VBScript.htm help file.

 

Also, I would like to get started with c-hook and .NET programming. Are these SDK included with the installation CD /or where should I get this information.

 

Thanks in advance.

Link to comment
Share on other sites

quote:

Most of my vbscripts written for V9 do not work in X. I'm having problems with AskForEntiy() in particular.


AskForEntity() is broken in X VBS but will be fixed, as mentioned here.

 

quote:

Also, I would like to get started with c-hook and .NET programming. Are these SDK included with the installation CD /or where should I get this information.


The C-Hook SDK and API documentation is available from your reseller. All you need after that is Visual C++.

 

The Nethook SDK is included with X. It's all in the nethook.dll file that's in the root of your X installation folder. There isn't any documentation at this time but the nature of the Nethooks is very self-documenting, making it easy to get started. Of course, you'll need Visual Studio .NET Pro (or VB .NET Pro or Visual C# .NET Pro) or SharpDevelop.

Link to comment
Share on other sites

quote:

So in general, are all VBS commands supported in X (and may be in the future)?


Most are, with a few exceptions. There are some new things to take into account, as well, such as this.

 

quote:

Would you recommend Nethook or VBS to make simpler programs?


I decide whether to use C-Hook, Nethook or VBS APIs on a per-project basis. I only go with C-Hooks when I have no other choice (it currently has the most "hooks" into Mastercam). If a project requires some automation but likely won't rely on too much "external" functionality (heavy-duty file i/o, sockets, etc) or doesn't need a UI, or won't become too complex, or it doesn't matter if the source code is visible, then I go with VBS. Otherwise, Nethooks all the way (I prefer C#)!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • 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

×
×
  • Create New...