hexagon logo

Extract minimum point from scan segment

I'm trying to extract the minimum point from a scan segment on a tapered surface. Is it possible to extract the T-Value of the scan points as opposed to the minimum point in an axis? With the surface being tapered, I always get the same minimum point. Any help is appreciated.
  • I would need more of a visual to understand what you're asking for, but have you tried a variable statement with that scan segments hits and sorted with an array?
  • I'm not sure if this is quite what you are looking for, but here is some code that will put all of the T-values of a scan into an array, find the minimum index of that array (the minimum point), then assign the values of that minimum point into a generic feature. This is essentially extracting the point from the scan with the minimum T-value.

    ASSIGN/TVALS=DOT(SCN1.HIT[1..SCN1.NUMHITS].XYZ-SCN1.HIT[1..SCN1.NUMHITS].TXYZ,SCN1.HIT[1..SCN1.NUMHITS].TIJK)
                ASSIGN/MINV=MININDEX(TVALS)
    SCN1_MINPNT=GENERIC/POINT,DEPENDENT,CARTESIAN,$
                NOM/XYZ,<SCN1.HIT[MINV].TX,SCN1.HIT[MINV].TY,SCN1.HIT[MINV].TZ>,$
                MEAS/XYZ,<SCN1.HIT[MINV].X,SCN1.HIT[MINV].Y,SCN1.HIT[MINV].Z>,$
                NOM/IJK,<SCN1.HIT[MINV].TI,SCN1.HIT[MINV].TJ,SCN1.HIT[MINV].TK>,$
                MEAS/IJK,<SCN1.HIT[MINV].I,SCN1.HIT[MINV].J,SCN1.HIT[MINV].K>​
    


    This is based on math. I only vaguely understand it. Link to post where he shared the code to put the T-values into an array: https://www.pcdmisforum.com/forum/pc-dmis-enterprise-metrology-software/pc-dmis-for-cmms/504570-extracting-t-values-from-advanced-scan-from-within-a-loop#post504661

    If you simply want to know the deviation value of the minimum point, then you can just create a profile dimension in legacy mode and look at what is reported as the MIN value. You could then turn on text analysis to get a report for the deviations of every point on the report. A MAX and MIN label will mark the extremes. In the picture below you can see that on this scan the 28th point is the minimum.

      ​​



    ​​​

    Attached Files
  • Thanks, I think this is close to what I'm looking for. I'll update when I get the opportunity to try it out