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:

Writing applications/C-hooks


John T.
 Share

Recommended Posts

Whats it take? We use a few old DOS programs to automatically write programs to cut aluminium and steel airboxes. User inputs the box dimensions, tool diameters, and the program puts out a tool list and a program.

 

How can I do the same thing with mastercam with the same inputs, but possibly with a graphic view of the airbox also when its done computing? I'm guessing VB script won't do it.

 

John

Link to comment
Share on other sites

VB Script could certainly handle it. The following is the title of each section in the VBScript.htm file, located in your C:(install)help folder. If you know VB Script, it is pretty straight forward. If you don't check the SCRIPT56.CHM help file.

 

code:

///////////////////////////////////////////////////////////////////////////////

 

CONSTANTS

 

///////////////////////////////////////////////////////////////////////////////

 

 

 

Links:

 

Entity types

 

Entity ‘bit’ flags

 

Milling tool types

 

Drilling tool types

 

Operation

 

View

 

File Access modes

 

Drill Sort Methods

 

Others

 

///////////

///////////////////////////////////////////////////////////////////////////////

 

CLASSES

 

///////////////////////////////////////////////////////////////////////////////

 

 

 

Links:

 

Point

 

Line

 

Arc

 

Rectangle

 

Leads

 

DepthCuts

 

Overrides

 

//////

///////////////////////////////////////////////////////////////////////////////

 

FUNCTIONS

 

///////////////////////////////////////////////////////////////////////////////

 

 

 

Links:

 

 

 

Script Debugging utilities

 

Prompt area message functions

 

Simple Input functions

 

Entity Prompt/Inquiries functions

 

Chaining functions

 

Database Search functions

 

Entity Creation functions

 

Excel File Read/Write functions

 

Utility functions

 

Toolpath Generation functions

 

 

 


Link to comment
Share on other sites

If they made any changes, I think they were minor ones. VB.NET is a different animal though. VB Script has all the functionality you need to prompt a user for dimensions (or read them from an ASCII text file), create geometry, add toolpath operations, add chains, specify parameters, and generate toolpaths.

 

If you want access to more functions, .NET hooks or a C-hook would be the way to go.

Link to comment
Share on other sites
  • 7 months later...

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