Your Products have been synced, click here to refresh
If you're using a scan, with a very short distance between hits, you can calculate the lengh by summing the distance between hits. Some thing like it :
ASSIGN\V1=1
ASSIGN\LENGTH=0
Loop from 1 to (SCN1.NUMHITS-1)
ASSIGN\V2="SCN1.HIT["+V1+"]"
ASSIGN\V3="SCN1.HIT["+(V1+1)+"]"
ASSIGN\V4=SQRT(DOT(V3.XYZ-V2.XYZ,V3.XYZ-V2.XYZ))
ASSIGN\LENGTH=LENGTH+V4
ASSIGN\V1=V1+1
END LOOP
COMMENT\RAPPORT\"LENGTH = "+LENGTH
I'm not at the CMM, but I think it should work...
If you're using a scan, with a very short distance between hits, you can calculate the lengh by summing the distance between hits. Some thing like it :
ASSIGN\V1=1
ASSIGN\LENGTH=0
Loop from 1 to (SCN1.NUMHITS-1)
ASSIGN\V2="SCN1.HIT["+V1+"]"
ASSIGN\V3="SCN1.HIT["+(V1+1)+"]"
ASSIGN\V4=SQRT(DOT(V3.XYZ-V2.XYZ,V3.XYZ-V2.XYZ))
ASSIGN\LENGTH=LENGTH+V4
ASSIGN\V1=V1+1
END LOOP
COMMENT\RAPPORT\"LENGTH = "+LENGTH
I'm not at the CMM, but I think it should work...
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |