Array

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

  • Array

    I have 120 diameters I want to array but I don't want to list all 120 diameter.
    Anyway to array just the 1st and last one? ARRAY(CIR1 THRU CIR120)
    I don't want to have to so this ARRAY(CIR1, CIR2, CIR3 ect…..etct….CIR120)

  • #2
    Have you tried using an incremental loop?

    Psuedo-code
    {
    k=1
    while k<121
    append cir + k to array
    k++
    }

    Comment


    • #3
      if I use incremental loop I can't go to a specific circle if I need to

      Comment


      • JacobCheverie
        JacobCheverie commented
        Editing a comment
        Do you mean if you had more or less than 120 circles? Just do this and change j, you can even have a comment that asks for j.

        Psuedo-code
        {
        k = 1
        j = 120
        while k < j + 1
        append cir + k to array
        k++
        }

    • #4
      No way that I know of, and you'll have to do multiple arrays because the line length will be too long.
      I've requested in suggested features this functionality ARRAY(CIR1..CIR120), like pulling points from a scan.

      Comment


      • programmer
        programmer commented
        Editing a comment
        I did multiple arrays ….but its not allowing me to ASSIGN/V10=MAX(V8,V9)
        see attachment

    • #5
      I did multiple arrays ….but its not allowing me to ASSIGN/V10=MAX(V8,V9)
      Attached Files

      Comment


      • BKulpa
        BKulpa commented
        Editing a comment
        In your individual ARRAY's do V8=Max(array(
        Then try max(v8,V9)

    • #6
      In a loop (V1 from 1 to 121), you can :
      ASSIGN/V2[V1]="CIR"+V1
      Which should give you the right array.

      Depends on what you want to do with, you can also create a feature set with CIR*

      Comment


      • #7
        Originally posted by JEFMAN View Post
        In a loop (V1 from 1 to 121), you can :
        ASSIGN/V2[V1]="CIR"+V1
        Which should give you the right array.

        Depends on what you want to do with, you can also create a feature set with CIR*
        if I use loop it would be more difficult to see a certain circles if there's an issue with it.

        Comment


        • JEFMAN
          JEFMAN commented
          Editing a comment
          This loop only creates a array...

      • #8

        BKulpa I tried " ARRAY's do V8=Max(array(
        Then try max(v8,V9)" still not working.

        Comment


        • #9
          In the first post, I understand that you want a single array with circles.
          In the #5, the attached file shows dimensions (.meas)

          I believe that ASSIGN/V2[V1]="ITEM73_"+V1+"_MIN_MAX.LOWER.MEAS" in a loop should create the single array, then you could ask for min and max of V2

          Maybe I didn't understand what you're looking for ?

          Comment

          Related Topics

          Collapse

          Working...
          X