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
  • Do the logic (ie. save the CSV) from within the script based on what the value of dblOutTol is.


    I realize that check is there but it's not that simple. There are many lines of code pulling results into variables, checking for a file, creating a file if not present, formatting each row of data in a specific way the customer wants, writing the data, etc. This I do not know how to do in BASIC. It's much easier to pass a variable back to PCD if the dblOutTol>0 but I do not know how to do that.
Reply
  • Do the logic (ie. save the CSV) from within the script based on what the value of dblOutTol is.


    I realize that check is there but it's not that simple. There are many lines of code pulling results into variables, checking for a file, creating a file if not present, formatting each row of data in a specific way the customer wants, writing the data, etc. This I do not know how to do in BASIC. It's much easier to pass a variable back to PCD if the dblOutTol>0 but I do not know how to do that.
Children
No Data