hexagon logo

Evaluation of measured Points in reports

Hello,

is there a possibility to create an evaluation at the end of a program that shows how many measured points are within, out of tolerance and how many are at 50/75%? In the best case with in the reports.​

Thanks for help!
Parents
  • You can put all the points in a feature set, then calculate the t_values :
    ASSIGN/TVAL=DOT(SCN1.HIT[1..SCN1.NUMHITS].XYZ-SCN1.HIT[1..SCN1.NUMHITS].TXYZ,SCN1.HIT[1..SCN1.NUMHITS].TIJK)
    Assuming the tolerance is the same for all points :
    ASSIGN/TOL=0.05
    ASSIGN/ZONE=TOL*(ARRAY(-1,-0.75,-0.5,0.5,0.75,1))
    ASSIGN/V1=1
    ASSIGN/PERCENTAGE=0
    DO/
    ASSIGN/P1=ZONE[V1]
    ASSIGN/VAL=SUM(((TVAL-P1)-ABS(TVAL-P1))/((TVAL-P1)-ABS(TVAL-P1)))
    PER_VAL[V1]=(VAL+PERCENTAGE)/SCN1.NUMHITS
    ASSIGN/PERCENTAGE=VAL
    ASSIGN/V1=V1+1
    UNTIL/V1==7
    ASSIGN/PER_VAL[7]=1-PERCENTAGE

    PER_VAL should be an array giving the percentages corresponding to the array "zone"
Reply
  • You can put all the points in a feature set, then calculate the t_values :
    ASSIGN/TVAL=DOT(SCN1.HIT[1..SCN1.NUMHITS].XYZ-SCN1.HIT[1..SCN1.NUMHITS].TXYZ,SCN1.HIT[1..SCN1.NUMHITS].TIJK)
    Assuming the tolerance is the same for all points :
    ASSIGN/TOL=0.05
    ASSIGN/ZONE=TOL*(ARRAY(-1,-0.75,-0.5,0.5,0.75,1))
    ASSIGN/V1=1
    ASSIGN/PERCENTAGE=0
    DO/
    ASSIGN/P1=ZONE[V1]
    ASSIGN/VAL=SUM(((TVAL-P1)-ABS(TVAL-P1))/((TVAL-P1)-ABS(TVAL-P1)))
    PER_VAL[V1]=(VAL+PERCENTAGE)/SCN1.NUMHITS
    ASSIGN/PERCENTAGE=VAL
    ASSIGN/V1=V1+1
    UNTIL/V1==7
    ASSIGN/PER_VAL[7]=1-PERCENTAGE

    PER_VAL should be an array giving the percentages corresponding to the array "zone"
Children