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 - operation status


Recommended Posts

Yes, I want to run regen on dirty operations. But I don't want to regen operation that are NOT dirty. Calling regen on all operations will waste a lot of time. Especially on big surface toolpaths.

 

I can do this through a chook no problem but I'd rather do it through a script. I was hoping the vbscript components had progressed far enough for me to do this.

 

Bryan smile.gif

Link to comment
Share on other sites

Behold the power of vbscripts

 

Just reviving this thread because I though some people might find this useful. The following is a vbscript / chook hybrid. It does what I want so I don't plan on doing much more with it. But I figured others could find it useful.

 

http://ivanxxxx.com/vb_alert_20040308.zip

 

What it does: The vbscript will regenerate operations in the Operation Manger that are dirty (red x) and selected. After they're regenerated it runs an alert.

 

Possible alerts: all done thru vbscript, are:

Play a wav file.

Send an email

Display a message in a pop up box

Log off, Shutdown, Reboot, or Power Off your computer

Speak a message, it uses XP's text to speech engine.

Winamp pause/unpause - requires a 3rd party dll

Or any combinations of these along with anything else vbscript can do.

 

Requirements: Only tested on XP. I doubt it will work on win98 and probably a 50/50 chance on win2000. Sorry. frown.gif I was recently force upgraded kicking and screeming to XP so I no longer have access to a win98 development environment.

 

the Chook: The chook implements a simple interface that takes an operation id and returns its selected and dirty status. See the vbscript for implementation details. The chook is not bound to this script and can be used in other scripts. Hopefully Mastercam will add this functionality to mc vbscript at some future date. biggrin.gif

 

Finally why? cuckoo.gif This script allows me to do other things while a particualy large surface file is regenerating. I don't have to sit around babysitting my computer for minutes or hours while it regens. I can go do other things, like take a nap. biggrin.gif

 

Bryan smile.gif

Link to comment
Share on other sites

Bryan,

 

that is cool I was barely smart enough to change the script to send an email (to me) when the regen was done. now if i wasnt so cheap i could email my cell phone and go out to the truck to take a nap headscratch.gif

 

Thanks for sharing with all of us.

Jody

Link to comment
Share on other sites

Bryan,

 

i did take a class last fall for VB so at least i knew what to look for to change. but i have never been good at starting from a blank screen and writing a program. so for now i just borrow for the rest of you and tweak it to fit me.

 

 

Jody

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