code to find the highest hit on a plane?

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

  • code to find the highest hit on a plane?

    From an auto plane measured feature in Y+ workplane what is the easiest way to find the point with the highest y value? I would want to assign the X and Z values to report the location of the deepest wear.

    The feature is 360 hits taken in a radial pattern of 1 row... TTP not scanned

  • #2
    Try

    say you have a plane....PLN1

    You create a hit array from PLN1 and search for Y

    ASSIGN/V1=PLN1.HIT[1..NUMHITS].Y

    you can then pull the MAX & MIN "Y" values

    ASSIGN/V2=MAX(V1)
    ASSIGN/V3=MIN(V1)

    B&S CHAMELEON/PCDMIS CAD++ V2011

    There are no bugs, only "UNDOCUMENTED ENHANCEMENTS!"

    sigpic

    Comment


    • Douglas
      Douglas commented
      Editing a comment
      Going to try that Monday morning thanks

    • pcdmisstudent
      pcdmisstudent commented
      Editing a comment
      could you orgin an axis on a varaible like that?

  • #3
    What dph51 said...
    Another way, depending on the part, could be :
    Creating a constructed plane from auto plane, and filtering it to avoid outliers hits.
    Then, ASSIGN/V1=MAXINDEX(PLN2.HIT[1..PLN2.NUMHITS].Y)
    and construct a generic point with PLN2.HIT[V1].XYZ.

    Comment

    Related Topics

    Collapse

    Working...
    X