Pulling dimension info from nested loops (loop within a loop)

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

  • Pulling dimension info from nested loops (loop within a loop)

    I have a loop within a loop.
    The inner (nested) loop is a 3x loop and that lies within a 5x loop
    The features for the 5x loop are reporting correctly but when I dimension the inner loop's loops [3,5] it will reports the same data for each itteration.
    Example:
    in the edit window i have "Feautre[1,2]" but on the report it shows as "Feature[1,1]"



    Code:
    DIM STEP7_PLN1_4= LOCATION OF PLANE PHPLNSTP7[1,4] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    Z 0.000 -0.001 ----#----
    END OF DIMENSION STEP7_PLN1_4
    DIM STEP7_PINHOLE1_4= LOCATION OF CIRCLE PHCIRSTP7[1,4] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 0.000 0.001 ----#----
    Y 0.000 -0.001 ----#----
    Z 0.000 0.000 ----#----
    D 5.000 3.485 <--------
    END OF DIMENSION STEP7_PINHOLE1_4
    COMMENT/REPT,
    $$$$$$
    DIM STEP7_PLN2_4= LOCATION OF PLANE PHPLNSTP7[2,4] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    Z 0.000 -0.004 ----#----
    END OF DIMENSION STEP7_PLN2_4
    DIM STEP7_PINHOLE2_4= LOCATION OF PLANE PHPLNSTP7[2,4] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 0.000 -0.007 ----#----
    Y 0.000 0.241 -------->
    Z 0.000 -0.004 ----#----
    D 0.000 0.000 ----#----
    END OF DIMENSION STEP7_PINHOLE2_4
    COMMENT/REPT,
    $$$$$$
    DIM STEP7_PLN3_4= LOCATION OF PLANE PHPLNSTP7[3,4] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    Z 0.000 -0.007 ----#----
    END OF DIMENSION STEP7_PLN3_4
    DIM STEP7_PINHOLE3_4= LOCATION OF CIRCLE PHCIRSTP7[3,4] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 0.000 0.000 ----#----
    Y 0.000 0.002 ----#----
    Z 0.000 -0.005 ----#----
    D 5.000 3.485 <--------
    END OF DIMENSION STEP7_PINHOLE3_4
    DIM STEP7_SMR_14OF5= LOCATION OF SPHERE S7SMR1[4] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 46.633 46.144 <--------
    Y 167.370 167.834 -------->
    Z -196.381 -196.243 -------->
    D 12.700 12.704 ----#----
    END OF DIMENSION STEP7_SMR_14OF5
    DIM STEP7_SMR_24OF5= LOCATION OF SPHERE S7SMR2[4] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 46.578 45.492 <--------
    Y 151.177 151.220 ------#--
    Z -136.533 -135.468 -------->
    D 12.700 12.705 ----#----
    END OF DIMENSION STEP7_SMR_24OF5
    DIM STEP7_SMR_3_4OF5= LOCATION OF SPHERE S7SMR3[4] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 46.539 46.095 <--------
    Y 160.688 160.614 -#-------
    Z -95.111 -93.652 -------->
    D 12.700 12.706 ----#----
    END OF DIMENSION STEP7_SMR_3_4OF5
    DIM STEP7_SMR_4_4OF5= LOCATION OF SPHERE S7SMR4[4] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 35.915 35.956 ------#--
    Y -99.332 -101.077 <--------
    Z 90.998 91.416 -------->
    D 12.700 12.706 ----#----
    END OF DIMENSION STEP7_SMR_4_4OF5
    DIM STEP7_SMR_5_4OF5= LOCATION OF SPHERE S7SMR5[4] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 59.365 59.399 -----#---
    Y -41.133 -40.854 -------->
    Z 145.992 146.484 -------->
    D 12.708 12.705 ----#----
    END OF DIMENSION STEP7_SMR_5_4OF5
    DIM STEP7_SMR_6_4OF5= LOCATION OF SPHERE S7SMR6[4] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 59.921 59.960 ------#--
    Y 27.846 28.123 -------->
    Z 161.288 161.775 -------->
    D 12.720 12.704 ---#-----
    END OF DIMENSION STEP7_SMR_6_4OF5
    COMMENT/REPT,
    $$$$$$
    COMMENT/REPT,
    $$$$$$
    DIM STEP7_PLN1_5= LOCATION OF PLANE PHPLNSTP7[1,5] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    Z 0.000 -0.001 ----#----
    END OF DIMENSION STEP7_PLN1_5
    DIM STEP7_PINHOLE1_5= LOCATION OF CIRCLE PHCIRSTP7[1,5] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 0.000 0.001 ----#----
    Y 0.000 -0.001 ----#----
    Z 0.000 0.000 ----#----
    D 5.000 3.485 <--------
    END OF DIMENSION STEP7_PINHOLE1_5
    COMMENT/REPT,
    $$$$$$
    DIM STEP7_PLN2_5= LOCATION OF PLANE PHPLNSTP7[2,5] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    Z 0.000 -0.004 ----#----
    END OF DIMENSION STEP7_PLN2_5
    DIM STEP7_PINHOLE2_5= LOCATION OF CIRCLE PHCIRSTP7[2,5] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 0.000 -0.006 ----#----
    Y 0.000 0.002 ----#----
    Z 0.000 -0.002 ----#----
    D 5.000 3.485 <--------
    END OF DIMENSION STEP7_PINHOLE2_5
    COMMENT/REPT,
    $$$$$$
    DIM STEP7_PLN3_5= LOCATION OF PLANE PHPLNSTP7[3,5] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    Z 0.000 -0.007 ----#----
    END OF DIMENSION STEP7_PLN3_5
    DIM STEP7_PINHOLE3_5= LOCATION OF CIRCLE PHCIRSTP7[3,5] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 0.000 0.000 ----#----
    Y 0.000 0.002 ----#----
    Z 0.000 -0.005 ----#----
    D 5.000 3.485 <--------
    END OF DIMENSION STEP7_PINHOLE3_5
    DIM STEP7_SMR_1_5OF5= LOCATION OF SPHERE S7SMR1[5] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 46.633 46.145 <--------
    Y 167.370 167.834 -------->
    Z -196.381 -196.245 -------->
    D 12.700 12.704 ----#----
    END OF DIMENSION STEP7_SMR_1_5OF5
    DIM STEP7_SMR_2_5OF5= LOCATION OF SPHERE S7SMR2[5] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 46.578 45.493 <--------
    Y 151.177 151.220 ------#--
    Z -136.533 -135.469 -------->
    D 12.700 12.704 ----#----
    END OF DIMENSION STEP7_SMR_2_5OF5
    DIM STEP7_SMR_3_5OF5= LOCATION OF SPHERE S7SMR3[5] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 46.539 46.095 <--------
    Y 160.688 160.614 -#-------
    Z -95.111 -93.654 -------->
    D 12.700 12.705 ----#----
    END OF DIMENSION STEP7_SMR_3_5OF5
    DIM STEP7_SMR_4_5OF5= LOCATION OF SPHERE S7SMR4[5] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 35.915 35.957 ------#--
    Y -99.332 -101.077 <--------
    Z 90.998 91.415 -------->
    D 12.700 12.706 ----#----
    END OF DIMENSION STEP7_SMR_4_5OF5
    DIM STEP7_SMR_5_5OF5= LOCATION OF SPHERE S7SMR5[5] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 59.365 59.400 ------#--
    Y -41.133 -40.854 -------->
    Z 145.992 146.483 -------->
    D 12.708 12.705 ----#----
    END OF DIMENSION STEP7_SMR_5_5OF5
    DIM STEP7_SMR_6_5OF5= LOCATION OF SPHERE S7SMR6[5] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL MEAS
    X 59.921 59.961 ------#--
    Y 27.846 28.124 -------->
    Z 161.288 161.774 -------->
    D 12.720 12.704 ---#-----
    END OF DIMENSION STEP7_SMR_6_5OF5
    COMMENT/REPT,
    $$$$$$

  • #2
    I think each loop reference would be [].
    Feature[1][1]
    feature[1][2]
    others

    Comment

    Related Topics

    Collapse

    Working...
    X