hexagon logo

Change dimension output mode - please help!

I am new to script programming and hope somebody can help.
I need to measure parts with holes on various pitch diameters to determine the PCD. The problem is that the amount of holes vary from part to part (10, 12, 16, 20, etc). I setup a part program using variables and flow controlk commands. I construct the pitch circles using the relevant amount of holes and get the diameter of each pitch circle eg.
DIM LOC10= LOCATION OF CIRCLE CIR_PCDH12 UNITS=MM ,$
GRAPH=OFF TEXT=OFF MULT=1000.00 OUTPUT=BOTH
AX MEAS
D 550.025
END OF DIMENSION LOC10
DIM LOC12= LOCATION OF CIRCLE CIR_PCDH12 UNITS=MM ,$
GRAPH=OFF TEXT=OFF MULT=1000.00 OUTPUT=BOTH
AX MEAS
D 550.025
END OF DIMENSION LOC12

If I print the report, all the PCD's are printed. I am looking for a script to change the output mode for the unnecessary dimensions to OUTPUT=NONE.
Parents
  • yes/no comment statement
    assign variable to comment/statement
    flow control to test
    place variable V11 into report command



    C1 =COMMENT/YESNO,NO,DO YOU WISH TO SEND DATA TO REPORT?

    ASSIGN/V1 = C1.INPUT

    IF/V1 == "YES"
    ASSIGN/V11 = "REPORT"
    END_IF/
    IF/V1 == "NO"
    ASSIGN/V11 = "NONE"
    END_IF/

    DIM DIST1A= 2D DISTANCE FROM POINT PNT1 TO POINT PNT2 PAR TO ZAXIS, NO_RADIUS UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=V11
    AX MEAS
    M 28.737



    HTH
Reply
  • yes/no comment statement
    assign variable to comment/statement
    flow control to test
    place variable V11 into report command



    C1 =COMMENT/YESNO,NO,DO YOU WISH TO SEND DATA TO REPORT?

    ASSIGN/V1 = C1.INPUT

    IF/V1 == "YES"
    ASSIGN/V11 = "REPORT"
    END_IF/
    IF/V1 == "NO"
    ASSIGN/V11 = "NONE"
    END_IF/

    DIM DIST1A= 2D DISTANCE FROM POINT PNT1 TO POINT PNT2 PAR TO ZAXIS, NO_RADIUS UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=V11
    AX MEAS
    M 28.737



    HTH
Children
No Data