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:

Vbscript question: How do I? ... another ops question


bryan314
 Share

Recommended Posts

Lets see:

 

Be able to get a list of operations groups, name or group id.

GetGroupCount(FileName or "" for current file) return total # of groups, or error

GetGroupName(Group id #) return string or error

SetGroupName(group id #, New name string) error if name already exists

 

Create or delete groups

DeleteGroup(group id#) return ok or error

DeleteGroupByName(group name as string) return ok or error

CreateGroup( name as string) return group id # or error

 

Group type (optional since we only want to deal with op groups.)

GetGroupType(group id #) return 0=geometry, 1=operations, 2=SystemGroup, 3=SystemResult

 

Prob something for subgroups since X is supposed to have this

GetParent or GetChild group?

SetAsParent or SetasChild group?

 

Get group name or id of operation.

GetOperationGroupId(op id #) return group #

 

Move operation to another group

SetOperationGroupId(op id#, group id #)

 

Tooldisplay

GetToolDisplay(op id #) return on/off true/false or error

 

turn tool display on/off by op id

SetToolDisplay( op id# , on/off or true/false)

 

Turn on/off all tool display

SetToolDisplayAll(on/off true/false) or just loop thru operation and do this on by one

 

turn off/on tool display by group id or name

SetToolDisplayGroup(Group name or group id, on/off true/false) or again use above functions from above to do this in a sub routine.

 

Replace tooldisplay with posting or locking for posting and locking on/off.

 

There's probably more but that's all I can think of off the top of my head.

 

Tie this in with some view manipulation

rotate view ? degrees in (x, y, z)

or set view relative to view (X). ie what would be FRONTVIEW relative to CURRENT CPLANE.

and DometaFile (or view and metafile by themselves) and you have some awsome possiblities.

 

eMastercams html setup sheet already adds one screen capture. Think top, front, side, and iso ->automatic part prints.

 

 

Bryan smile.gif

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