scan for high point

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

  • scan for high point

    I did a scan over a curved surface at 1 cross section.

    I’d like to find the highest point in Y axis of the scan, and be able to use that high point later as a construct. (As opposed to searching for hipt with the hipt function)

    Can I do this without writing a VB script? If not, is there a copy of a script around anywhere?

    Wayne

  • #2
    try this

    This was from an earlier post -

    ASSIGN/MAXY = MAX(SCN1.HIT[1..SCN1.NUMHITS].Y)
    ASSIGN/MAXYPT = MAXINDEX(SCN1.HIT[1..SCN1.NUMHITS].Y)
    ASSIGN/MINY = MIN(SCN1.HIT[1..SCN1.NUMHITS].Y)
    ASSIGN/MINYPT = MININDEX(SCN1.HIT[1..SCN1.NUMHITS].Y)
    COMMENT/REPT,
    ,MAXY
    ,MAXYPT
    ,MINY
    ,MINYPT


    Obviously, you want to substitute your own scan feature name in place of SCN1. This example is based on finding the MIN and MAX Y values in a scan, but with the correct syntaxc it will work for your case also.

    Comment


    • #3
      Thanks my friend!

      Comment


      • #4
        Hey Wayne... How's things going in Ohio? Still the same here in good ol' VT

        Mike

        Comment


        • #5
          re: SCAN HIGH POINT

          Hi.

          You could simply dimension the scan and implement the "max / min" attribute,
          then create a generic point from this.


          The code below works well for me, this is to find an high point in " X plus ".

          SCN1 =FEAT/SCAN,LINEAROPEN,SHOWHITS=NO,SHOWALLPARAMS=NO
          MEAS/SCAN
          BASICSCAN/LINE,SHOWHITS=NO,SHOWALLPARAMS=NO
          ENDSCAN
          ENDMEAS/

          ASSIGN / NUM = SCN1.NUMHITS
          ASSIGN / C = 1
          ASSIGN / YMAX = 0
          WHILE / C< = NUM
          IF / SCN1.HIT [C].X > XMAX
          ASSIGN/XMAX = SCN1.HIT[C].X
          ASSIGN/YCORD = SCN1.HIT[C].Y
          ASSIGN/ZCORD = SCN1.HIT[C].Z
          END_IF/

          COMMENT/OPER,NO ,XMAX
          ,YCORD
          ,ZCORD
          ASSIGN / C = C+1
          END_WHILE /

          ASSIGN / V1 = -24

          Z3 =GENERIC / POINT, DEPENDENT,RECT,$
          NOM/XYZ,4.157,-18.007,608,$
          MEAS/XYZ, XMAX, YCORD, V1,$
          NOM/IJK,1,0,0,$
          MEAS/IJK,1,0,0

          Whatever works best!


          UK.
          Bristol Citysigpic
          Home of the Reds

          Comment

          Related Topics

          Collapse

          Working...
          X