Effective Way to Measure This Bizarre callout

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Effective Way to Measure This Bizarre callout

    I have a line of 28 holes. There is a regular position callout, than under it (but not connected) there is the callout below.

    3 conse holes.PNG

    Is there a better way of doing this besides making a bunch of best fit alignments? I know I could do it, but I'm lazy. Sorry for the generic topic title, wasn't sure how else to phrase it.

  • #2
    If you lump all 28 holes into 1 best fit alignment and it passes, you would " exceeding " this 3 hole requirement.

    Comment


    • #3
      Randyawg Is it separate dimensions or a composite true position?
      Remembering my beautiful wife Taz who's life was lost on 6-13-2020. I love you and I miss you.

      Comment


      • #4
        Originally posted by A-machine-insp View Post
        Randyawg Is it separate dimensions or a composite true position?
        Originally posted by Randyawg View Post
        There is a regular position callout, than under it (but not connected) there is the callout below.
        I would say no.
        PC-DMIS 2016.0 SP8

        Jeff

        Comment


        • #5
          Originally posted by Schlag View Post
          If you lump all 28 holes into 1 best fit alignment and it passes, you would " exceeding " this 3 hole requirement.
          Then if any do fall out from time to time, you could do a best fit alignment with that hole and the ones before and after it and see if it's good to that callout.
          PC-DMIS 2016.0 SP8

          Jeff

          Comment


          • #6
            This would work (2020 R2 or later). I've split the code up, added notes (in red) and indented the loop to make it easier to read.

            Code:
            [COLOR=#e74c3c]Dimension entire group based on the first callout (I've guessed at what it might be since it was not shared in the original post)[/COLOR]
            
            FCFLOC1 =GEOMETRIC_TOLERANCE/STANDARD=ASME Y14.5,SHOWEXPANDED=YES,
            FEATURE_MATH=DEFAULT,DATUM_MATH=DEFAULT,DISPLAY_CO ORDS=DRF,
            UNITS=MM,OUTPUT=BOTH,ARROWDENSITY=100,
            SIZE/NOMINAL=14.125,UPPER TOLERANCE=0.1,LOWER TOLERANCE=-0.1,
            REPORT_LOCAL_SIZE=OFF,
            CYL1:
            UAME SIZE:14.071,
            CYL2:
            UAME SIZE:14.072,
            CYL3:
            UAME SIZE:14.080,
            CYL4:
            UAME SIZE:14.086,
            CYL5:
            UAME SIZE:14.071,
            CYL6:
            UAME SIZE:14.071,
            CYL7:
            UAME SIZE:14.077,
            CYL8:
            UAME SIZE:14.082,
            CYL9:
            UAME SIZE:14.080,
            CYL10:
            UAME SIZE:14.066,
            CYL11:
            UAME SIZE:14.096,
            CYL12:
            UAME SIZE:14.078,
            CYL13:
            UAME SIZE:14.101,
            CYL14:
            UAME SIZE:14.066,
            CYL15:
            UAME SIZE:14.084,
            CYL16:
            UAME SIZE:14.067,
            CYL17:
            UAME SIZE:14.077,
            CYL18:
            UAME SIZE:14.072,
            CYL19:
            UAME SIZE:14.078,
            CYL20:
            UAME SIZE:14.082,
            CYL21:
            UAME SIZE:14.087,
            CYL22:
            UAME SIZE:14.074,
            CYL23:
            UAME SIZE:14.080,
            CYL24:
            UAME SIZE:14.080,
            CYL25:
            UAME SIZE:14.079,
            CYL26:
            UAME SIZE:14.077,
            CYL27:
            UAME SIZE:14.077,
            CYL28:
            UAME SIZE:14.088,
            SEGMENT_1,POSITION,DIAMETER,3,MMC,__,<len>,__,A,B, __,C,__,
            TEXT=OFF,CADGRAPH=OFF,REPORTGRAPH=OFF,MULT=10,
            MEASURED:
            CYL1:0.106,
            CYL2:0.073,
            CYL3:0.123,
            CYL4:0.087,
            CYL5:0.073,
            CYL6:0.083,
            CYL7:0.075,
            CYL8:0.113,
            CYL9:0.061,
            CYL10:0.082,
            CYL11:0.066,
            CYL12:0.065,
            CYL13:0.102,
            CYL14:0.116,
            CYL15:0.088,
            CYL16:0.107,
            CYL17:0.109,
            CYL18:0.090,
            CYL19:0.095,
            CYL20:0.113,
            CYL21:0.108,
            CYL22:0.121,
            CYL23:0.113,
            CYL24:0.097,
            CYL25:0.119,
            CYL26:0.132,
            CYL27:0.130,
            CYL28:0.107,
            ADD
            FEATURES/CYL1,CYL2,CYL3,CYL4,CYL5,CYL6,CYL7,CYL8,CYL9,CYL10 ,CYL11,
            CYL12,CYL13,CYL14,CYL15,CYL16,CYL17,CYL18,CYL19,CY L20,CYL21,
            CYL22,CYL23,CYL24,CYL25,CYL26,CYL27,CYL28,,
            ASSIGN/V1=0
            
            [COLOR=#e74c3c]Loop through all holes testing each consecutive three as per the second position call out.  (output turned off for these so they don't all show on report)[/COLOR]
            
            DO/
              ASSIGN/V2="CYL"+STR(V1+1)
              ASSIGN/V3="CYL"+STR(V1+2)
              ASSIGN/V4="CYL"+STR(V1+3)
              TEMP =GEOMETRIC_TOLERANCE/STANDARD=ASME Y14.5,SHOWEXPANDED=YES,
              FEATURE_MATH=DEFAULT,DISPLAY_COORDS=DRF,
              UNITS=MM,OUTPUT=NONE,ARROWDENSITY=100,
              SIZE/NOMINAL=14.125,UPPER TOLERANCE=0.1,LOWER TOLERANCE=-0.1,
              REPORT_LOCAL_SIZE=OFF,
              CYL26:
              UAME SIZE:14.077,
              CYL27:
              UAME SIZE:14.077,
              CYL28:
              UAME SIZE:14.088,
              SEGMENT_1,POSITION,DIAMETER,1.5,MMC,__,<len>,<dat> ,<dat>,<dat>,
              TEXT=OFF,CADGRAPH=OFF,REPORTGRAPH=OFF,MULT=10,
              MEASURED:
              CYL26:0.020,
               CYL27:0.020,
              CYL28:0.020,
              ADD
              FEATURES/{V2},{V3},{V4},,
              ASSIGN/V1=V1+1
              ASSIGN/DIM_ARRAY[V1]=MAX(ARRAY(TEMP.SEGMENT[1].FEATURE[1].MEAS,TEMP.SEGMENT[1].FEATURE[2].MEAS,TEMP.SEGMENT[1].FEATURE[3].MEAS))
            UNTIL/V1==26
            
            [COLOR=#e74c3c]find which three holes had the worst TP and output to the report[/COLOR]
            ASSIGN/V5=MAXINDEX(DIM_ARRAY)
            COMMENT/REPT,
            .
            Worst three holes
            *****************
            .
            ASSIGN/V11="CYL"+STR(V5)
            ASSIGN/V12="CYL"+STR(V5+1)
            ASSIGN/V13="CYL"+STR(V5+2)
            FCFLOC2 =GEOMETRIC_TOLERANCE/STANDARD=ASME Y14.5,SHOWEXPANDED=YES,
            FEATURE_MATH=DEFAULT,DISPLAY_COORDS=DRF,
            UNITS=MM,OUTPUT=BOTH,ARROWDENSITY=100,
            SIZE/NOMINAL=14.125,UPPER TOLERANCE=0.1,LOWER TOLERANCE=-0.1,
            REPORT_LOCAL_SIZE=OFF,
            CYL3:
            UAME SIZE:14.080,
            CYL4:
            UAME SIZE:14.086,
            CYL5:
            UAME SIZE:14.071,
            SEGMENT_1,POSITION,DIAMETER,1.5,__,__,<len>,<dat>, <dat>,<dat>,
            TEXT=OFF,CADGRAPH=OFF,REPORTGRAPH=OFF,MULT=10,
            MEASURED:
            {V11}:0.042,
            {V12}:0.042,
            {V13}:0.042,
            ADD
            FEATURES/{V11},{V12},{V13},,
            Neil Challinor
            PC-DMIS Product Owner

            T: +44 870 446 2667 (Hexagon UK office)
            E: [email protected]

            Comment


            • #7
              Appreciate all of the responses, thanks guys. Neil, that is amazing code, but unfortunately we are still running 2019R2. However, this alone might actually make me want to do the upgrade. Genuinely impressed.

              Since I (hopefully) only have to measure a handful of these parts, I like the idea of lumping them all into one BF, and then manually evaluate and report the worst data. Seriously, thanks everyone.

              Comment

              Related Topics

              Collapse

              Working...
              X