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:

VB Script Editor and Mastercam X API


Guest SAMCRO
 Share

Recommended Posts

I'm looking for the complete documentation of the object model.

 

I'd like to be able to evaluate wether or not a project is best suited as a C-Hook or a Script.

 

As it stands right now, the documentation for creating useable scripts in Mastercam is nonexistent.

It doesn't truly support VBScript.

The MsgBox Method is a is a good example.

Totally unsupported.

Sure WSH is supported but there isn't any documentation about what is actually exposed and available.

 

A little documentation in a useable form would be helpful.

Without it, scripting in Mastercam is essentially worthless.

Link to comment
Share on other sites

quote:

The MsgBox Method is a is a good example.

Totally unsupported.


Indeed, and it is one of few VBScript-native functions not available to the Mastercam VBS API (another one that comes to mind is the Sleep() method of the Shell class...I have a workaround to that, though). However, there are subs like ShowString() and ShowValue() that accomplish the same thing as MsgBox().

 

quote:

Sure WSH is supported but there isn't any documentation about what is actually exposed and available.


Plenty is available. Actually, most of it is available. FileSystem, Dictionary, Shell, other DLLs with COM hooks...all of it is available for you to use. As far as WSH documentation, that's always been available here.

 

quote:

A little documentation in a useable form would be helpful.


That is true. Most of the documentation for the Mastercam APIs is fairly weak.

 

quote:

Without it, scripting in Mastercam is essentially worthless.


That is not true. Where the documentation leaves off, this forum takes over biggrin.gif

Link to comment
Share on other sites

Bullines-

 

 

quote:

Plenty is available. Actually, most of it is available. FileSystem, Dictionary, Shell, other DLLs with COM hooks...all of it is available for you to use. As far as WSH documentation, that's always been available here.

I'm not talking about documentation of WSH.

 

I'm talking about documentation of the Mastercam Object Model.

 

You say plenty is available but don't bother to say where.

 

Based on what I've been able to piece together on my own, it sure appears that any app of moderate complexity has to be done as a C-Hook.

 

I'm not a fan of .Net since the 2.0 Framework seems to break about 80% of .Net apps that run just fine with Framework 1.1.

(Framework - a fancy name for a bloated 25MB+ runtime)

 

Scripting in Mastercam seems to useful for only the most basic of projects.

The Editor doesn't even include a Basic Oject browser.

I've been using VBSEdit for script development

http://www.vbsedit.com/

Link to comment
Share on other sites

-------

"any app of moderate complexity has to be done as a C-Hook."

-------

 

I would have to agree, but only because there is more functionality available via the C-Hook API than through .NET & VBS. Our .NET layer is essentially a wrapper around the C-Hook API, but not everything is wrapped (reason: time and resources). But that doesn't mean that developers haven't done some very cool stuff with .NET and VBS...

Link to comment
Share on other sites

Pete-

 

Thanks for your input.

 

I'm sure that there is plenty that can be done with Scripting.

My questions are really only so I can make the most efficient use of my time.

 

I must say that I think you guys have done an absolutely AWESOME job with Version X.

The problem is getting spoiled by the continuing improvement of the product.

One tends to expect more because you guys make it look so easy sometimes.

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