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:

chooks: I finally got those darn things converted to v9.0


bryan314
 Share

Recommended Posts

...and knowing my luck Mastercam 9.1 will probably come out next week. biggrin.gif

 

Anyways the current version of my chooks can be downloaded at:

Link to Bryan's chook downloads (1560K/1.52MB)

 

The main website page is:

Bryan's chook web page.

 

The short list:

Converted chooks over to 9.0

A few minor bugfixes

A few new chooks:

scanarcs: Scan selected arc sizes then change color or set to 'result.' Search options are =, >, <, <> between, and >< outside.

 

multirun: Run multiple chooks and functions from a list.

 

trnslcnt: Toggle the translucency for a shaded surface.

 

Plus a few other odds and ends.

 

Bryan smile.gif

 

[ 02-27-2003, 10:39 AM: Message edited by: bryan314 ]

Link to comment
Share on other sites

Bryan,

We are producing a new C-Hook development kit for V9.1, but almost all V9.0 C-Hooks should still run in V9.1 without being re-built.

The exception is any C-Hooks which look to the SIM for the serial number, sim type, Mastercam level, etc. These will need to be rebuilt.

The V9.1 C-hook kit will also include enhanced access to Solids and the WCS

 

PDG

Link to comment
Share on other sites

I hope that new kit developpement will be provided with best documentation support.

For example, now i'm trying to add tools and using

____________________________________

EXTERN void (*_tool_manager) (

tp_tool *tl, // IO: pointer to material - make sure tl->op.slot is set for read access

short mode, // I: TLMGR_ADD, TLMGR_EDIT, etc

db_ptr_type *eptr, // O: db pointer to tool entity

boolean *succf); // O: tool manager successful

#define tool_manager (*_tool_manager)

___________________________________________

 

make sure tl->op.slot is set for read access

does not correspond to reality

 

smile.gif

Link to comment
Share on other sites

quote:

This release is going to make available VBA also, correct? And what will be the uses/limitations of using VB to create c-hooks, (v-hooks?)

In 9.1 you wont be able to directly turn vbscript into chooks. The vbscript engine itself is a chook. It in turn interprets a script you write.

 

benifits:

[*]Don't have to buy an expensive compiler.

[*]Don't have to learn c or its super/sub-sets C++, MFC, etc

[*]Don't have to learn the Mastercam C api.

[*]To make a change you just edit the script with your favorite text editor and rerun.

[*]vbscript probably has a userbase since it's a Mircosoft product.

[*]Should make it easy to prototype a program for later translation into a chook.

Limitations:

[*]Runs slower since the file has to be reinterpreted every time. This shouldn't be noticable for small scripts.

[*]I lied - you probably still have to learn the MC Api just in vbscript form.

[*]C has a wealth of libraries and code repositories out there. If someone hasn't written it, they've written something similiar. If nothing similiar, someones written a paper describing how to write it. If no ones written....And so on.

[*]You have to learn vbscript. If you know visual basic this shouldn't be too bad.

 

I sure if you search Google or something you can find a wealth of information on benifits/limitations of scripting languages vs programming languages.

 

Bryan smile.gif

Link to comment
Share on other sites

Version 9.1 will include the ability to create, edit, test, and save Visual Basic Scripts. VBScript is driven by a Microsoft engine that lets the programmer edit and run add-ins without needing to purchase and/or learn a compiler. The language is almost exactly like the Visual Basic programming language, and we provide a slick editor that lets you edit and test scripts, without having to exit Mastercam and without having to "compile" and "link" them. We've providing lots of help files and lots of samples, too.

The downside is that the VBScript interface to Mastercam does not have all of the functionality that the C-Hook API has. The upside is that this functionality can easily be expanded after the release of V9.1, without requiring new .EXEs.

The initial release of our support fof VBScript will include the ability to create and modify points, lines, and arcs, as well as allowing creation of Contour, Drill, and Pocket operations. There's lots of other stuff in there too, like import of other file types (IGES, DWG, etc), access to tool definition, and the ability to read data from a Microsoft Excel file.

When you get V9.1, please take a look at it. It's available in Create/Next/Add-ins (or by invoking the "MCAMVB" C-Hook)

Coming (very) soon to a computer near you...

 

PDG

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