hexagon logo

Have the roundness of an auto-circle in a variable

Hi there,

I am trying to have the roundness of an auto-element in a variable. I cannot use a dimension as I have 30,000 circles and try to export all of these roudnesses via a script to a txt file.

Does anyone knows how to call the roundness of an auto-circle into a variable?

Thanks in advance.
Parents
  • The loop doesn't spit the data out into csv.
    (FYI: this format is designed to work within Mitutoyo Measurlink importing syntax)

    add something like this before the while loop.
    -any of the +PART or +ROUTINE point to assigns that are either embedded into the routine code at the beginning, or are the result of an Input Comment... so alter at will.

    ASSIGN/C_PATH="C:\PRODUCTION\CUSTOMERNAME\PART\REPORTOUTPUT.CSV"
    ASSIGN/CHAR_1="Roundness for Circle # "
    C_FILE =FILE/OPEN,C_PATH,APPEND
    FILE/WRITELINE,C_FILE,"/PART NUMBER/" + "," + PART
    FILE/WRITELINE,C_FILE,"/ROUTINE NAME/" + "," + ROUTINE
    FILE/WRITELINE,C_FILE,"/LOT#/" + "," + RUN_ID
    FILE/WRITELINE,C_FILE,"/OPERATOR/" + "," + TRACE_FOLDER + "," + "Operator" + "," + OPERATOR
    FILE/WRITELINE,C_FILE,"/SCHEDULED TIME/" + "," + TRACE_FOLDER + "," + "Scheduled Time" + "," + TIME​

    then, within the loop:
    FILE/WRITELINE,C_FILE,"/DATA/" + "," + CHAR_1 + VCOUNT_ACTUAL + "," + RND.SEGMENT[1].FEATURE[1].MEAS

    outside of while loop, at end of routine:
    FILE/WRITELINE,C_FILE,"/END/"
    FILE/CLOSE,C_FILE,KEEP​​
  • you can parametrically and uniquely name each file within that ASSIGN/C_PATH line by adding a reference to an Input Comment/serial number or syntax for a unique timestamp if no part serialization, within the .csv file name.
Reply Children
No Data