dimensions out of loop ... anyone??

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

  • dimensions out of loop ... anyone??

    here's some code

    CMT1 = INPUT, ... ENTER NUMBER OF TIMES TO LOOP
    ASSIGN/V1=CMT1.INPUT
    .
    .
    .
    VARI1 =LOOP/START, ID = YES, NUMBER = V1, START = 1, SKIP = ,
    OFFSET: XAXIS = 0, YAXIS = 0, ZAXIS = 0, ANGLE = 0
    DIM DIM1= LOCATION OF POINT POINT[VARI1] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
    AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
    X 19.969 20.000 0.050 0.050 -0.031 0.000 -#-------
    Y 19.996 20.000 0.050 0.050 -0.004 0.000 ----#----
    Z 0.005 0.000 0.050 0.050 0.005 0.000 ----#----
    T 0.005 0.000 0.050 0.050 0.005 0.000 ----#----
    END OF DIMENSION DIM1
    LOOP/END

    in the report, i only have one dimension... the last one.

    i know that there must be a problem with the way i'm
    using the array for the dimension ID, maybe it's not recognising
    a number from the comment (string or something)...

    has anyone got this to work?
    maybe you've taken a different route but the same result (one that worked).

    any help appreciated

  • #2
    Originally posted by elvis View Post
    here's some code

    CMT1 = INPUT, ... ENTER NUMBER OF TIMES TO LOOP
    ASSIGN/V1=CMT1.INPUT
    .
    .
    .
    VARI1 =LOOP/START, ID = YES, NUMBER = V1, START = 1, SKIP = ,
    OFFSET: XAXIS = 0, YAXIS = 0, ZAXIS = 0, ANGLE = 0
    DIM DIM1= LOCATION OF POINT POINT[VARI1] UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
    AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
    X 19.969 20.000 0.050 0.050 -0.031 0.000 -#-------
    Y 19.996 20.000 0.050 0.050 -0.004 0.000 ----#----
    Z 0.005 0.000 0.050 0.050 0.005 0.000 ----#----
    T 0.005 0.000 0.050 0.050 0.005 0.000 ----#----
    END OF DIMENSION DIM1
    LOOP/END

    in the report, i only have one dimension... the last one.

    i know that there must be a problem with the way i'm
    using the array for the dimension ID, maybe it's not recognising
    a number from the comment (string or something)...

    has anyone got this to work?
    maybe you've taken a different route but the same result (one that worked).

    any help appreciated
    To me you can just put cmt1.input into your number
    Put a print statement outside the loop @ the end
    I think thats what you want.
    sigpic.....Its called golf because all the other 4 letter words were taken

    Comment


    • #3
      It might be the report mode. Are you looking at "last execution"?
      <internet bumper sticker goes here>

      Comment


      • #4
        yes i am looking at the right report, both report windows
        have nothing really...

        i'll try the print statement-
        will this print to report? or to the printer? or to file?
        it would be logical to have commands to refresh the report,
        would print do that?

        funny thing is, i can do this by jumping to labels just makes a huge mess
        if you want to alter something.

        Comment


        • #5
          The print statement is a command that executes the print function.

          However if your using v4.1 youll notice that PCDMIS likes to occassionally skip the executation of that line of code. I know what your thinking, "Thats a nice feature to have.".

          My guess is that the same bug that makes the printer not print when the checkbox is marked in the dialog box, also makes the printer not print when theres a command to do so in your program.
          Mr. Comment
          SCIROCCO-NT 13-20-10
          B3C-LC Controller (Leitz Protocol), SP600M, TP200
          PCDMIS CAD++ v4.3 MR1(Build: 12/11/08)
          sigpic

          Comment


          • #6
            Code:
            C1         =COMMENT/INPUT,NO,Enter the number of times to loop
            V1         =LOOP/START, ID = YES, NUMBER = C1.INPUT, START = 1, SKIP = ,
                           OFFSET: XAXIS = 0, YAXIS = 0, ZAXIS = 0, ANGLE = 0
            PNT1       =AUTO/VECTOR POINT,SHOWALLPARAMS = NO
                        THEO/9.489,19.388,32.375,0,0,1
                        ACTL/9.489,19.388,32.375,0,0,1
                        TARG/9.489,19.388,32.375,0,0,1
            DIM LOC9= LOCATION OF POINT PNT1  UNITS=MM ,$
            GRAPH=OFF  TEXT=OFF  MULT=10.00  OUTPUT=NONE
            AX    NOMINAL       +TOL       -TOL       MEAS        DEV     OUTTOL
            X       9.489      0.050      0.050      9.489      0.000      0.000 ----#----
            Y      19.388      0.050      0.050     19.388      0.000      0.000 ----#----
            Z      32.375      0.050      0.050     32.375      0.000      0.000 ----#----
            END OF DIMENSION LOC9
                        LOOP/END
            If you put your dimension within your feature loop then this should work.

            Is your point data in an array already?
            Mr. Comment
            SCIROCCO-NT 13-20-10
            B3C-LC Controller (Leitz Protocol), SP600M, TP200
            PCDMIS CAD++ v4.3 MR1(Build: 12/11/08)
            sigpic

            Comment


            • #7
              Originally posted by MrComment View Post
              The print statement is a command that executes the print function.

              However if your using v4.1 youll notice that PCDMIS likes to occassionally skip the executation of that line of code. I know what your thinking, "Thats a nice feature to have.".

              My guess is that the same bug that makes the printer not print when the checkbox is marked in the dialog box, also makes the printer not print when theres a command to do so in your program.
              Go here to read the fix for no printing.
              sigpic

              James Mannes

              Comment


              • #8
                Originally posted by elvis View Post
                yes i am looking at the right report, both report windows
                have nothing really...

                i'll try the print statement-
                will this print to report? or to the printer? or to file?
                it would be logical to have commands to refresh the report,
                would print do that?

                funny thing is, i can do this by jumping to labels just makes a huge mess
                if you want to alter something.
                The following:

                V1 =LOOP/START, ID = YES, NUMBER = 9, START = 1, SKIP = ,
                OFFSET: XAXIS = 0, YAXIS = 0, ZAXIS = 0, ANGLE = 0
                POINT =FEAT/POINT,RECT
                THEO/-4.79,4.02,1.103,-0.7544065,0.6330222,0.1736482
                ACTL/-4.79,4.02,1.103,-0.7660444,0.6427876,0
                CONSTR/POINT,CAST,SPH1.HIT[V1]
                DIM LOC1= LOCATION OF POINT POINT
                AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
                X -6.230 -6.230 0.000 0.000 0.000 0.000
                Y -0.545 -0.545 0.000 0.000 0.000 0.000
                Z 1.103 -1.103 0.000 0.000 2.205 2.205
                END OF DIMENSION LOC1
                LOOP/END

                Shows only the last point in "full report mode" and ALL 9 points in the "last execution report mode"

                3.7 mr3

                TK
                sigpicHave a homebrew

                Comment


                • #9
                  man.....
                  ever want to hear about the dumbass move of the century?
                  two weeks i've been playing with this loop!

                  finally the solution was to "un-mark" the dimension, that way it
                  gives reports as they happen....
                  who knew?!

                  anyone wanting "realtime" reports be warned lol
                  don't fall for that stupid thing-

                  am i supposed to commit japanese harakiri for that?

                  Comment


                  • #10
                    I think if you un-mark your dimension. It will just use whatever "old" data was left from the last time it was marked for execution. Actually I would be surprised if it came out in the report at all?

                    Seems like an unlikely solution to your problem. Can you explain how this helps?
                    Mr. Comment
                    SCIROCCO-NT 13-20-10
                    B3C-LC Controller (Leitz Protocol), SP600M, TP200
                    PCDMIS CAD++ v4.3 MR1(Build: 12/11/08)
                    sigpic

                    Comment


                    • #11
                      I think you are still screwed like Mr. Comment says there elvis. You haven't getten into the prescriptions again have you?
                      <internet bumper sticker goes here>

                      Comment


                      • #12
                        Originally posted by MrComment View Post
                        I think if you un-mark your dimension. It will just use whatever "old" data was left from the last time it was marked for execution. Actually I would be surprised if it came out in the report at all?

                        Seems like an unlikely solution to your problem. Can you explain how this helps?
                        I tried umarking it, no go here. If it's marked it does show up in the last execution report mode, geez!

                        TK
                        sigpicHave a homebrew

                        Comment


                        • #13
                          Originally posted by craiger_ny View Post
                          I think you are still screwed like Mr. Comment says there elvis. You haven't getten into the prescriptions again have you?
                          I don't know about elvis but I'm think'in maybe I need some!

                          TK
                          sigpicHave a homebrew

                          Comment


                          • #14
                            oops yeah that was a typo...

                            i meant to say "mark" the dimension.
                            i was looking for a complicated answer
                            then finally before i left work, i thought
                            hey isn't that the wrong colour?

                            sure enough, watching the report window
                            i can see reports coming up one after the other.

                            so dumb, i'm goin fishing
                            thanks for all your help by the way everyone
                            without that index i wouldn't have even found that....

                            Comment


                            • #15
                              Originally posted by elvis View Post
                              oops yeah that was a typo...

                              i meant to say "mark" the dimension.
                              i was looking for a complicated answer
                              then finally before i left work, i thought
                              hey isn't that the wrong colour?

                              sure enough, watching the report window
                              i can see reports coming up one after the other.

                              so dumb, i'm goin fishing
                              thanks for all your help by the way everyone
                              without that index i wouldn't have even found that....

                              Elvis has left the building !!!!!
                              sigpic.....Its called golf because all the other 4 letter words were taken

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X