Your Products have been synced, click here to refresh
Old, but works very well! The messagebox works fine for me in 2011 MR1.
This is the code I have in my part program:
ASSIGN/NUMBEROUTTOL=0 CS4 =SCRIPT/FILENAME= J:\CMM\REPORTING\SCRIPTS\OUTTOL.BAS FUNCTION/Main,SHOW=NO,, STARTSCRIPT/ ASSIGN/NUMOUTTOL=NUMBEROUTTOL IF/NUMOUTTOL==0 END_IF/ ELSE_IF/NUMOUTTOL>0 COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO, "Part is Bad. There are "+NUMOUTTOL+" dimensions out of tolerance." END_ELSEIF/
I actually end up with two message boxes, one from the script and one from the above code. That way the operator is sure to see (and hopefully read) one of them. We use this for sending data to a customer database. Data is only sent if no dim's are OOT. If there are OOT dim's the operator must re-work the parts until all dim's are in tolerance.
Old, but works very well! The messagebox works fine for me in 2011 MR1.
This is the code I have in my part program:
ASSIGN/NUMBEROUTTOL=0 CS4 =SCRIPT/FILENAME= J:\CMM\REPORTING\SCRIPTS\OUTTOL.BAS FUNCTION/Main,SHOW=NO,, STARTSCRIPT/ ASSIGN/NUMOUTTOL=NUMBEROUTTOL IF/NUMOUTTOL==0 END_IF/ ELSE_IF/NUMOUTTOL>0 COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO, "Part is Bad. There are "+NUMOUTTOL+" dimensions out of tolerance." END_ELSEIF/
I actually end up with two message boxes, one from the script and one from the above code. That way the operator is sure to see (and hopefully read) one of them. We use this for sending data to a customer database. Data is only sent if no dim's are OOT. If there are OOT dim's the operator must re-work the parts until all dim's are in tolerance.
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |