Report Loc count not working for loop

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

  • Report Loc count not working for loop

    I'm trying to get the report to output the count number in the loop
    keeps outputting LOC_3[1] throughout the report.
    I'm looking for LOC_3[1]....[53]

    C1 =COMMENT/INPUT,NO,FULL SCREEN=NO,
    HOW MANY ROTATIONS?

    MOVE/CLEARPLANE
    ASSIGN/V1=C1.INPUT
    ASSIGN/V2=360/C1.INPUT
    ASSIGN/DEG_COUNT=0
    LOOP1 =LOOP/START,ID=YES,NUMBER=V1,START=1,SKIP=,
    OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=V2
    COMMENT/REPT,

    "LOCATION #3 Ø12.845 - 12.849 (RADIAL 6.4235±.001) @"+DEG_COUNT

    ASSIGN/COUNT=1
    ASSIGN/ZNOM=-9.925
    WHILE/COUNT<=53
    LOC_3 =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
    THEO/<6.4235,0,ZNOM>,<-1,0,0>
    ACTL/<6.4235,0,-10.185>,<-1,0,0>
    TARG/<6.4235,0,ZNOM>,<-1,0,0>
    SNAP=NO
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=YES
    AVOIDANCE MOVE=NO,DISTANCE=0.3937
    SHOW HITS=NO
    ASSIGN/COUNT=COUNT+1
    ASSIGN/ZNOM=ZNOM-.005
    END_WHILE/

    ASSIGN/COUNT=1
    ASSIGN/ZNOM=-9.925
    WHILE/COUNT<=53
    DIM LOC_3HC= LOCATION OF POINT LOC_3[COUNT] UNITS=IN ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX MEAS NOMINAL +TOL -TOL OUTTOL DEV MAX MIN
    Z -10.1850 ZNOM 0.0010 0.0010 0.0000 0.0000 -10.1850 -10.1850 -#-
    PR 6.4235 6.4235 0.0010 0.0010 0.0000 0.0000 6.4235 6.4235 -#-
    END OF DIMENSION LOC_3HC[1]
    ASSIGN/COUNT=COUNT+1
    ASSIGN/ZNOM=ZNOM-.005
    END_WHILE/

  • #2
    In your code, I don't see the loop/end...
    So the PC-DMIS reads C1.INPUT, then loop on the first while, then loop on the second while, and then go to the loop start to increment...
    Is this what you want, or count and loop1 have the same value ?

    Comment


    • #3
      Because you have your count=1 after the loop. You should have COUNT=0 before the loop and COUNT=COUNT+1 after the loop. In your code, you cancel out the Count+1 by putting a count=1 shortly after it.

      Comment


      • CORONAXRA
        CORONAXRA commented
        Editing a comment
        i have a end_while before that count

    • #4
      Loop end is further down the code, i didn't include it when i posted to the thread, i'll include now
      I'm looking for the report to read LOC_3 [1] LOC_3[2]....and so on
      Highlighted in red text
      see report attachment


      COMMENT/INPUT,NO,FULL SCREEN=NO,
      HOW MANY ROTATIONS?

      CLEARP/ZPLUS,6,ZPLUS,0,OFF
      MOVE/CLEARPLANE
      ASSIGN/V1=C1.INPUT
      ASSIGN/V2=360/C1.INPUT
      ASSIGN/DEG_COUNT=0
      LOOP1 =LOOP/START,ID=YES,NUMBER=V1,START=1,SKIP=,
      OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=V2
      COMMENT/REPT,

      "LOCATION #3 Ø12.845 - 12.849 (RADIAL 6.4235±.001) @"+DEG_COUNT

      ASSIGN/COUNT=1
      ASSIGN/ZNOM=4.916
      WHILE/COUNT<=65
      LOC_3 =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
      THEO/<6.4235,0,ZNOM>,<-1,0,0>
      ACTL/<6.4235,0,4.8371>,<-1,0,0>
      TARG/<6.4235,0,ZNOM>,<-1,0,0>
      SNAP=NO
      SHOW FEATURE PARAMETERS=NO
      SHOW CONTACT PARAMETERS=YES
      AVOIDANCE MOVE=NO,DISTANCE=0.3937
      SHOW HITS=NO
      ASSIGN/COUNT=COUNT+1
      ASSIGN/ZNOM=ZNOM-.005
      END_WHILE/
      ASSIGN/COUNT=1
      ASSIGN/ZNOM=4.916
      WHILE/COUNT<=65
      DIM LOC_3HC= LOCATION OF POINT LOC_3[COUNT] UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL OUTTOL DEV MAX MIN
      Z 4.8371 ZNOM 0.0010 0.0010 15.0211 15.0221 4.8371 4.8371 -->
      PR 6.4235 6.4235 0.0010 0.0010 0.0000 0.0000 6.4235 6.4235 -#-
      END OF DIMENSION LOC_3HC
      ASSIGN/COUNT=COUNT+1
      ASSIGN/ZNOM=ZNOM+.005
      END_WHILE/
      MOVE/INCREMENT,<-0.5,0,0>
      COMMENT/REPT,

      "LOCATION #4 Ø12.725 - 12.729 (RADIAL 6.3635±.001) @"+DEG_COUNT

      ASSIGN/COUNT=1
      ASSIGN/ZNOM=-10.25
      WHILE/COUNT<=50
      LOC_4 =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
      THEO/<6.3635,0,ZNOM>,<-1,0,0>
      ACTL/<6.3635,0,4.5271>,<-1,0,0>
      TARG/<6.3635,0,ZNOM>,<-1,0,0>
      SNAP=NO
      SHOW FEATURE PARAMETERS=NO
      SHOW CONTACT PARAMETERS=YES
      AVOIDANCE MOVE=NO,DISTANCE=0.3937
      SHOW HITS=NO
      ASSIGN/COUNT=COUNT+1
      ASSIGN/ZNOM=ZNOM-.005
      END_WHILE/
      ASSIGN/COUNT=1
      ASSIGN/ZNOM=-10.25
      WHILE/COUNT<=50
      DIM LOC_4HC= LOCATION OF POINT LOC_4[COUNT] UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL OUTTOL DEV MAX MIN
      Z 4.5271 ZNOM 0.0010 0.0010 15.0211 15.0221 4.5271 4.5271 -->
      PR 6.3635 6.3635 0.0010 0.0010 0.0000 0.0000 6.3635 6.3635 -#-
      END OF DIMENSION LOC_4HC
      ASSIGN/COUNT=COUNT+1
      ASSIGN/ZNOM=ZNOM-.005
      END_WHILE/
      MOVE/INCREMENT,<-0.5,0,0>
      COMMENT/REPT,

      "LOCATION #9 Ø12.404 - 12.408 (RADIAL 6.203±.001) @"+DEG_COUNT

      ASSIGN/COUNT=1
      ASSIGN/ZNOM=-10.95
      WHILE/COUNT<=46
      LOC_9 =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
      THEO/<6.203,0,ZNOM>,<-1,0,0>
      ACTL/<6.203,0,3.8471>,<-1,0,0>
      TARG/<6.203,0,ZNOM>,<-1,0,0>
      SNAP=NO
      SHOW FEATURE PARAMETERS=NO
      SHOW CONTACT PARAMETERS=YES
      AVOIDANCE MOVE=NO,DISTANCE=0.3937
      SHOW HITS=NO
      ASSIGN/COUNT=COUNT+1
      ASSIGN/ZNOM=ZNOM-.005
      END_WHILE/
      ASSIGN/COUNT=1
      ASSIGN/ZNOM=-10.95
      WHILE/COUNT<=46
      DIM LOC_9HC= LOCATION OF POINT LOC_9[COUNT] UNITS=IN ,$
      GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
      AX MEAS NOMINAL +TOL -TOL OUTTOL DEV MAX MIN
      Z 3.8471 ZNOM 0.0010 0.0010 15.0211 15.0221 3.8471 3.8471 -->
      PR 6.2030 6.2030 0.0010 0.0010 0.0000 0.0000 6.2030 6.2030 -#-
      END OF DIMENSION LOC_9HC
      ASSIGN/COUNT=COUNT+1
      ASSIGN/ZNOM=ZNOM-.005
      END_WHILE/
      CLEARP/ZPLUS,5.1121,ZPLUS,15.0221,OFF
      MOVE/CLEARPLANE
      ASSIGN/DEG_COUNT=DEG_COUNT+V2
      LOOP/END

      Attached Files

      Comment


      • #5
        Hi,

        When you post code use code tags.

        [C0DE]

        Code here

        [/C0DE]

        ...but with O instead of 0 (Keep it uppercase or it will convert it all to lower case which makes it difficult to read.


        Code:
        COMMENT/INPUT,NO,FULL SCREEN=NO,
        HOW MANY ROTATIONS?
        
        CLEARP/ZPLUS,6,ZPLUS,0,OFF
        MOVE/CLEARPLANE
        ASSIGN/V1=C1.INPUT
        ASSIGN/V2=360/C1.INPUT
        ASSIGN/DEG_COUNT=0
        LOOP1 =LOOP/START,ID=YES,NUMBER=V1,START=1,SKIP=,
        OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=V2
        COMMENT/REPT,
        
        "LOCATION #3 Ø12.845 - 12.849 (RADIAL 6.4235±.001) @"+DEG_COUNT
        
        ASSIGN/COUNT=1
        ASSIGN/ZNOM=4.916
        WHILE/COUNT<=65
        LOC_3 =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
        THEO/<6.4235,0,ZNOM>,<-1,0,0>
        ACTL/<6.4235,0,4.8371>,<-1,0,0>
        TARG/<6.4235,0,ZNOM>,<-1,0,0>
        SNAP=NO
        SHOW FEATURE PARAMETERS=NO
        SHOW CONTACT PARAMETERS=YES
        AVOIDANCE MOVE=NO,DISTANCE=0.3937
        SHOW HITS=NO
        ASSIGN/COUNT=COUNT+1
        ASSIGN/ZNOM=ZNOM-.005
        END_WHILE/
        ASSIGN/COUNT=1
        ASSIGN/ZNOM=4.916
        WHILE/COUNT<=65
        DIM LOC_3HC= LOCATION OF POINT LOC_3[COUNT] UNITS=IN ,$
        GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
        AX MEAS NOMINAL +TOL -TOL OUTTOL DEV MAX MIN
        Z 4.8371 ZNOM 0.0010 0.0010 15.0211 15.0221 4.8371 4.8371 -->
        PR 6.4235 6.4235 0.0010 0.0010 0.0000 0.0000 6.4235 6.4235 -#-
        END OF DIMENSION LOC_3HC
        ASSIGN/COUNT=COUNT+1
        ASSIGN/ZNOM=ZNOM+.005
        END_WHILE/
        MOVE/INCREMENT,<-0.5,0,0>
        COMMENT/REPT,
        
        "LOCATION #4 Ø12.725 - 12.729 (RADIAL 6.3635±.001) @"+DEG_COUNT
        
        ASSIGN/COUNT=1
        ASSIGN/ZNOM=-10.25
        WHILE/COUNT<=50
        LOC_4 =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
        THEO/<6.3635,0,ZNOM>,<-1,0,0>
        ACTL/<6.3635,0,4.5271>,<-1,0,0>
        TARG/<6.3635,0,ZNOM>,<-1,0,0>
        SNAP=NO
        SHOW FEATURE PARAMETERS=NO
        SHOW CONTACT PARAMETERS=YES
        AVOIDANCE MOVE=NO,DISTANCE=0.3937
        SHOW HITS=NO
        ASSIGN/COUNT=COUNT+1
        ASSIGN/ZNOM=ZNOM-.005
        END_WHILE/
        ASSIGN/COUNT=1
        ASSIGN/ZNOM=-10.25
        WHILE/COUNT<=50
        DIM LOC_4HC= LOCATION OF POINT LOC_4[COUNT] UNITS=IN ,$
        GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
        AX MEAS NOMINAL +TOL -TOL OUTTOL DEV MAX MIN
        Z 4.5271 ZNOM 0.0010 0.0010 15.0211 15.0221 4.5271 4.5271 -->
        PR 6.3635 6.3635 0.0010 0.0010 0.0000 0.0000 6.3635 6.3635 -#-
        END OF DIMENSION LOC_4HC
        ASSIGN/COUNT=COUNT+1
        ASSIGN/ZNOM=ZNOM-.005
        END_WHILE/
        MOVE/INCREMENT,<-0.5,0,0>
        COMMENT/REPT,
        
        "LOCATION #9 Ø12.404 - 12.408 (RADIAL 6.203±.001) @"+DEG_COUNT
        
        ASSIGN/COUNT=1
        ASSIGN/ZNOM=-10.95
        WHILE/COUNT<=46
        LOC_9 =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
        THEO/<6.203,0,ZNOM>,<-1,0,0>
        ACTL/<6.203,0,3.8471>,<-1,0,0>
        TARG/<6.203,0,ZNOM>,<-1,0,0>
        SNAP=NO
        SHOW FEATURE PARAMETERS=NO
        SHOW CONTACT PARAMETERS=YES
        AVOIDANCE MOVE=NO,DISTANCE=0.3937
        SHOW HITS=NO
        ASSIGN/COUNT=COUNT+1
        ASSIGN/ZNOM=ZNOM-.005
        END_WHILE/
        ASSIGN/COUNT=1
        ASSIGN/ZNOM=-10.95
        WHILE/COUNT<=46
        DIM LOC_9HC= LOCATION OF POINT LOC_9[COUNT] UNITS=IN ,$
        GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
        AX MEAS NOMINAL +TOL -TOL OUTTOL DEV MAX MIN
        Z 3.8471 ZNOM 0.0010 0.0010 15.0211 15.0221 3.8471 3.8471 -->
        PR 6.2030 6.2030 0.0010 0.0010 0.0000 0.0000 6.2030 6.2030 -#-
        END OF DIMENSION LOC_9HC
        ASSIGN/COUNT=COUNT+1
        ASSIGN/ZNOM=ZNOM-.005
        END_WHILE/
        CLEARP/ZPLUS,5.1121,ZPLUS,15.0221,OFF
        MOVE/CLEARPLANE
        ASSIGN/DEG_COUNT=DEG_COUNT+V2
        LOOP/END
        Automettech - Automated Metrology Technology

        Comment


        • #6
          So you want V1*53 LOC_3 and 50*V1 LOC_4 ?
          Why do you "while" twice ?
          This should work as well ?
          In your code you have 3 times ZNOM-0.005 and once ZNOM+0.005...

          Code:
          ASSIGN/COUNT=1
          ASSIGN/ZNOM=4.916
          WHILE/COUNT<=65
          LOC_3 =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
          THEO/<6.4235,0,ZNOM>,<-1,0,0>
          ACTL/<6.4235,0,4.8371>,<-1,0,0>
          TARG/<6.4235,0,ZNOM>,<-1,0,0>
          SNAP=NO
          SHOW FEATURE PARAMETERS=NO
          SHOW CONTACT PARAMETERS=YES
          AVOIDANCE MOVE=NO,DISTANCE=0.3937
          SHOW HITS=NO
          DIM LOC_3HC= LOCATION OF POINT LOC_3[COUNT] UNITS=IN ,$
          GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
          AX MEAS NOMINAL +TOL -TOL OUTTOL DEV MAX MIN
          Z 4.8371 ZNOM 0.0010 0.0010 15.0211 15.0221 4.8371 4.8371 -->
          PR 6.4235 6.4235 0.0010 0.0010 0.0000 0.0000 6.4235 6.4235 -#-
          END OF DIMENSION LOC_3HC
          ASSIGN/COUNT=COUNT+1
          ASSIGN/ZNOM=ZNOM-.005
          END_WHILE/

          Comment


          • #7
            Jefman, i tried your code and still not working
            the report is not cycling in numerical order

            Comment


            • JEFMAN
              JEFMAN commented
              Editing a comment
              Can you try to delete the red count above ?

          • #8
            Still didnt work, i included a snippet of the report
            i want loc_3[1] to cycle down the report numerically
            Attached Files

            Comment


            • #9
              Couple of questions / points to consider.

              1) Does the first While loop work correctly? I.e. does the point measurement move down as expected?

              2) You might want to consider using an assignment name other than 'COUNT' (might be a protected keyword), maybe use MYCOUNT

              3) PC-Dmis can be funny with recognising variables - you might be better doing something like this

              ASSIGN/ FEATNAME = "LOC_3" + MYCOUNT <<<<<<<<<<<<<<<<<< When you write this line type MYCOUNT first and hit enter, so PC-Dmis ask if this refers to the variable, then type the "LOC_3" + part in
              ASSIGN / FEATREF = {FEATNAME} <<<<<<<<<<<<<<<<<<<< Curly brackets are used to reference a feature (Not sure this line should be needed)

              DIM LOC_3HC= LOCATION OF POINT FEATREF UNITS=IN ,$


              Sorry but too busy to test this at present.
              Automettech - Automated Metrology Technology

              Comment


              • CORONAXRA
                CORONAXRA commented
                Editing a comment
                The program runs thru good, except for the report cycle
                trying your recommendations now

            • #10
              What report do you use : last executed or the other (main ?)

              Comment


              • CORONAXRA
                CORONAXRA commented
                Editing a comment
                Last executed

            • #11
              It wont cycle thru the program now
              this is what i entered
              also featref is red in the program after assign/

              i appreciate all the help so far

              Code:
              c1 =comment/input,no,full screen=no,
              how many rotations?
              
              Clearp/zplus,6,zplus,0,off
              move/clearplane
              assign/v1=c1.input
              assign/v2=360/c1.input
              assign/deg_count=0
              loop1 =loop/start,id=yes,number=v1,start=1,skip=,
              offset:xaxis=0,yaxis=0,zaxis=0,angle=v2
              comment/rept,
              
              "location #3.01 thru 3.66 ø12.845 - 12.849 (radial 6.4235±.001) @"+deg_count
              
              assign/count=1
              assign/znom=4.916
              while/count<=65
              loc_3[1,1] =feat/contact/vector point/default,polar
              theo/<6.4235,0,znom>,<-1,0,0>
              actl/<6.4235,0,4.916>,<-1,0,0>
              targ/<6.4235,0,znom>,<-1,0,0>
              snap=no
              show feature parameters=no
              show contact parameters=yes
              avoidance move=no,distance=0.3937
              show hits=no
              assign/count=count+1
              assign/znom=znom+.005
              end_while/
              assign/mycount=1
              assign/znom=4.916
              while/count<=65
              assign/featname="loc_3"+mycount
              assign/featref={featname}
              dim loc_3hc= location of point featref units=in ,$
              graph=off text=off mult=10.00 output=both half angle=no
              ax meas nominal +tol -tol outtol dev max min
              z 4.9160 znom 0.0010 0.0010 0.0000 0.0000 4.9160 4.9160 -#-
              pr 6.4235 6.4235 0.0010 0.0010 0.0000 0.0000 6.4235 6.4235 -#-
              end of dimension loc_3hc
              assign/count=count+1
              assign/znom=znom+.005
              end_while/

              Comment


              • #12
                Tried offline with a loop inside another one, it works fine, dimensions are shown as LOC_3[X,Y] with X number of loop2 and Y number of loop1
                Also tried with a do/until instead of While / end while, it doesn't work.
                I noticed, long time ago, that on some versions, do/until didn't work fine in loops, but loops worked fine in do/until..

                Code:
                COMMENT/INPUT,NO,FULL SCREEN=NO,
                HOW MANY ROTATIONS?
                
                CLEARP/ZPLUS,6,ZPLUS,0,OFF
                MOVE/CLEARPLANE
                ASSIGN/V1=C1.INPUT
                ASSIGN/V2=360/C1.INPUT
                ASSIGN/DEG_COUNT=0
                LOOP1 =LOOP/START,ID=YES,NUMBER=V1,START=1,SKIP=,
                OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=V2
                COMMENT/REPT,
                
                "LOCATION #3 Ø12.845 - 12.849 (RADIAL 6.4235±.001) @"+DEG_COUNT
                LOOP2 =LOOP/START,ID=YES,NUMBER=65,START=1,SKIP=,
                OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0.005,ANGLE=0
                LOC_3 =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
                THEO/<6.4235,0,4.916>,<-1,0,0>
                ACTL/<6.4235,0,4.8371>,<-1,0,0>
                TARG/<6.4235,0,4.916>,<-1,0,0>
                SNAP=NO
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                AVOIDANCE MOVE=NO,DISTANCE=0.3937
                SHOW HITS=NO
                DIM LOC_3HC= LOCATION OF POINT LOC_3 UNITS=IN ,$
                GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
                AX MEAS NOMINAL +TOL -TOL OUTTOL DEV MAX MIN
                Z 4.8371 ZNOM 0.0010 0.0010 15.0211 15.0221 4.8371 4.8371 -->
                PR 6.4235 6.4235 0.0010 0.0010 0.0000 0.0000 6.4235 6.4235 -#-
                END OF DIMENSION LOC_3HC
                LOOP/END
                MOVE/INCREMENT,<-0.5,0,0>
                COMMENT/REPT,
                
                "LOCATION #4 Ø12.725 - 12.729 (RADIAL 6.3635±.001) @"+DEG_COUNT
                LOOP3 =LOOP/START,ID=YES,NUMBER=50,START=1,SKIP=,
                OFFSET:XAXIS=0,YAXIS=0,ZAXIS=-0.005,ANGLE=0
                LOC_4 =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
                THEO/<6.3635,0,-10.25>,<-1,0,0>
                ACTL/<6.3635,0,4.5271>,<-1,0,0>
                TARG/<6.3635,0,-10.25>,<-1,0,0>
                SNAP=NO
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                AVOIDANCE MOVE=NO,DISTANCE=0.3937
                SHOW HITS=NO
                DIM LOC_4HC= LOCATION OF POINT LOC_4 UNITS=IN ,$
                GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
                AX MEAS NOMINAL +TOL -TOL OUTTOL DEV MAX MIN
                Z 4.5271 ZNOM 0.0010 0.0010 15.0211 15.0221 4.5271 4.5271 -->
                PR 6.3635 6.3635 0.0010 0.0010 0.0000 0.0000 6.3635 6.3635 -#-
                END OF DIMENSION LOC_4HC
                LOOP/END
                MOVE/INCREMENT,<-0.5,0,0>
                COMMENT/REPT,
                
                "LOCATION #9 Ø12.404 - 12.408 (RADIAL 6.203±.001) @"+DEG_COUNT
                LOOP4 =LOOP/START,ID=YES,NUMBER=46,START=1,SKIP=,
                OFFSET:XAXIS=0,YAXIS=0,ZAXIS=-0.005,ANGLE=0
                ASSIGN/COUNT=1
                ASSIGN/ZNOM=-10.95
                WHILE/COUNT<=46
                LOC_9 =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
                THEO/<6.203,0,-10.95>,<-1,0,0>
                ACTL/<6.203,0,3.8471>,<-1,0,0>
                TARG/<6.203,0,-10.95>,<-1,0,0>
                SNAP=NO
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                AVOIDANCE MOVE=NO,DISTANCE=0.3937
                SHOW HITS=NO
                DIM LOC_9HC= LOCATION OF POINT LOC_9 UNITS=IN ,$
                GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
                AX MEAS NOMINAL +TOL -TOL OUTTOL DEV MAX MIN
                Z 3.8471 ZNOM 0.0010 0.0010 15.0211 15.0221 3.8471 3.8471 -->
                PR 6.2030 6.2030 0.0010 0.0010 0.0000 0.0000 6.2030 6.2030 -#-
                END OF DIMENSION LOC_9HC
                LOOP/END
                CLEARP/ZPLUS,5.1121,ZPLUS,15.0221,OFF
                MOVE/CLEARPLANE
                ASSIGN/DEG_COUNT=DEG_COUNT+V2
                LOOP/END
                look here : https://www.pcdmisforum.com/forum/pc...-until-problem

                Comment


                • #13
                  Works great, thank you very much

                  i tried making a loop within a loop and that didnt work for me
                  maybe beacause i was using the assign/nom=nom+.005
                  might have been canceling each other out

                  Comment

                  Related Topics

                  Collapse

                  Working...
                  X