Reporting a range

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

  • Reporting a range

    Can anyone explain a way to report a summary of a group of features? For example, reporting only the maximum and minimum sizes for a group of holes or the range.

  • #2
    Quick answer is variables, but I'd have to do some experimentation to tell you exactly how.
    Kevin

    Comment


    • #3
      assign/v5=min(array(27_hiden_1.meas,27_hiden_2.meas,27_hi den_3.meas,27_hiden_4.meas,27_hiden_5.meas,27_hide n_6.meas,27_hiden_7.meas,27_hiden_8.meas,27_hiden_ 9.meas,27_hiden_10.meas))
      assign/v6=max(array(27_hiden_1.meas,27_hiden_2.meas,27_hi den_3.meas,27_hiden_4.meas,27_hiden_5.meas,27_hide n_6.meas,27_hiden_7.meas,27_hiden_8.meas,27_hiden_ 9.meas,27_hiden_10.meas))
      f5 =generic/circle,dependent,cartesian,out,$
      nom/xyz,<-0.00002,0.00017,0.00013>,$
      meas/xyz,<-0.00002,0.00017,0.00013>,$
      nom/ijk,<0.0000051,0.0000798,1>,$
      meas/ijk,<0.0000051,0.0000798,1>,$
      radius/0.2,v5
      f6 =generic/circle,dependent,cartesian,out,$
      nom/xyz,<-0.00002,0.00017,0.00013>,$
      meas/xyz,<-0.00002,0.00017,0.00013>,$
      nom/ijk,<0.0000051,0.0000798,1>,$
      meas/ijk,<0.0000051,0.0000798,1>,$
      radius/0.2,v6

      Comment


      • #4
        you need to use the min array and max array and then generic feature

        Comment


        • #5
          what thomas pilc said, but apply it to features instead of dimensions. You can also break the code down so you only need to assign the array once.
          Code:
          assign/v4=ARRAY(27_hiden_1.R,27_hiden_2.R,27_hi den_3.R,27_hiden_4.R,27_hiden_5.R,27_hide n_6.R,27_hiden_7.R,27_hiden_8.R,27_hiden_ 9.R,27_hiden_10.R)
          assign/v5=minindex(v4)
          assign/v6=maxindex(v4)
          assign/v7=v4[v5].all
          assign/v8-v4[v6].all
          (don't recall if .all works or not. If not you can use .xyz and another for .ijk, and another for .r)

          Then create your generic representations of them
          Code:
          f5 =generic/circle,dependent,cartesian,out,$
          nom/xyz,<v7.tx,v7.ty,v7.tz>,$
          meas/xyz,<v7.x,v7.y,v7.z>,$
          nom/ijk,<v7.ti,v7.tj,v7.tk>,$
          meas/ijk,<v7.i,v7.j,v7.k>,$
          radius/v7.tr,v7.r
          f6 =generic/circle,dependent,cartesian,out,$
          nom/xyz,<v8.tx,v8.ty,v8.tz>,$
          meas/xyz,<v8.x,v8.y,v8.z>,$
          nom/ijk,<v8.ti,v8.tj,v8.tk>,$
          meas/ijk,<v8.i,v8.j,v8.k>,$
          radius/v8.tr,v8.r



          [/CODE]

          Comment


          • #6
            the reason i did the dimension and not the feature is so i can see what one fails if the min or max fails those dimensions are all hidden from report or stats

            Comment


            • #7
              Thank you all.
              When I assign an array from 33 circles, how can I continue listing on another line?

              Comment


              • #8
                If all the features / dimension have the same "name", then create a loop V1 from 1 to 33
                ASSIGN/V2[V1]="CIRC"+V1+".R" shouls work

                Comment

                Related Topics

                Collapse

                Working...
                X