hexagon logo

VBScript for reports

Hello everyone,

I got a problem.. Slight smile When the measurement ends I want to save report to specific location, depending on where the part was made (we have same part, but we make it on 2 machines)..
I am using PRINT command, but it sometimes saves blank .rtf report for no reason. so I thought, that maybe using script would be better and more secure, but my scripting knowledge is really limited at the moment, since I just started to do scripting.

I tried to get it working with some scripts, but no luck.

Does anyone have any syntax or code example that I could check and make it work ?
Basically, when measurement ends, msgbox opens and you have to choose(checkbox/list/buttons) the destination where it should save report, which has to be .rtf because we use them in some other programs for statistic.

Thank you for help, D.
Parents
  • There are several variations of save-as scripts in the Code Samples forum, take a look around there to see if you find anything that might suit you.

    One solution could be to insert an operator comment in the beginning of the program (or right before your print command) that asks which machine the part came from and then via an if-then clause saves it as RTF to your specific location. This is doable with regular PC-DMIS commands (not scripting).
Reply
  • There are several variations of save-as scripts in the Code Samples forum, take a look around there to see if you find anything that might suit you.

    One solution could be to insert an operator comment in the beginning of the program (or right before your print command) that asks which machine the part came from and then via an if-then clause saves it as RTF to your specific location. This is doable with regular PC-DMIS commands (not scripting).
Children
No Data