hexagon logo

OUTTOLS Script help

I am using the OUTTOLS script found here but need help modifying it for my needs.

We have a part that gets checked on the CMM then data is written to a csv file to be uploaded to a customers database. However if a part has an OOT dimension we rework the part and check it again. I need a way to evaluate for an OOT condition and if there is one to NOT send any data to my csv file. How can I modify the aforementioned script to pass a variable back to PCD? I will then use that variable in an IF/THEN statement to determine whether or not to export the data. Thanks!
Parents
  • Nice to see it being used.



    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.



    To make this even better, I used to bury it in subroutines. Each program would simply call a begin and end subroutine. Then, if I ever wanted to change my 'administrative and cleanup' code, I changed it once, in the subroutine, instead of across every program.
Reply
  • Nice to see it being used.



    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.



    To make this even better, I used to bury it in subroutines. Each program would simply call a begin and end subroutine. Then, if I ever wanted to change my 'administrative and cleanup' code, I changed it once, in the subroutine, instead of across every program.
Children
No Data