Quick assignment/variable question

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

  • Quick assignment/variable question

    Ok,

    I have assigned 3 dims as variables, no problem.
    I want to calculate the avg of those 3 variables as my result
    which I assume I will have to output as generic feature to dimension...

    What syntax do I use for the avg ?
    Jim Jewell

  • #2
    I don't think 3.2 supports average.

    This would be the average of three diameters in 3.2

    Code:
                ASSIGN/AVGSIZE = (CIR1.D + CIR2.D + CIR3.D)/3
    <internet bumper sticker goes here>

    Comment


    • #3
      You do not have to use a generic feature. Use the keyin dimension, enter your noms/tols and the after you create change the "MEAS" to your assigned name. CTRL+E the tolerance then unmark it.

      DIM G_001= KEYED IN DIMENSION OUTPUT=BOTH
      AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
      M AVGSIZE 1.0000 0.0100 0.0100 0.0000 0.0000 ----#----
      Xcel & MicroVal Pfx & Global 37mr4 thru 2012mr1sp3
      Contura Calypso 5.4

      Lord, keep Your arm around my shoulder and Your hand over my mouth. Amen.

      Comment


      • #4
        Craiger,

        Thanks, now I really feel dumb, overthinking things again...Thank you for that..

        Dwade ....Huh ?

        I tried, but you can't enter a value under meas, not editable.

        What da I miss ?
        Jim Jewell

        Comment


        • #5
          I run V3.7MR3 and do it all the time. DaddyBluto posted the same using the featurename.x or whatever ext you need to dimensioninstead of a variable.

          ASSIGN/V1 = ((C7.Y-C14.Y)-.87)/2
          DIM G_001= KEYED IN DIMENSION OUTPUT=BOTH
          AX MEAS NOMINAL +TOL -TOL DEV OUTTOL
          M V10 0.8750 0.0050 0.0050 -0.0025 0.0000 --#------
          Xcel & MicroVal Pfx & Global 37mr4 thru 2012mr1sp3
          Contura Calypso 5.4

          Lord, keep Your arm around my shoulder and Your hand over my mouth. Amen.

          Comment


          • #6
            Keyin dim

            Dwade,

            I opened up ver 3.7, yes I see it lets you do that. The thing I don't like about it though, is the operator has to interact and hit enter every time it pops up....Is there a way to eliminate that ?
            Jim Jewell

            Comment


            • #7
              You might want to store it in an array. You'll need to index a variable with each loop then use that index number to set the position in the array. I think that might do it.

              Code:
              in your loop:
              
                          ASSIGN/V1 = 1
                          ASSIGN/V2[V1] = (CIR1.D + CIR2.D + CIR3.D) / 3
                          ASSIGN/V1 = V1 + 1
              <internet bumper sticker goes here>

              Comment


              • #8
                Craiger,

                Thnaks again, but the issues was that I choose the x axis in my generic feature for dimensioning. Every time the look runs, there is an offset value, it was adding the affset value to it. I Just changed the axis to z (no offset each run), good to go, Thanks to all again.
                Jim Jewell

                Comment


                • #9
                  After you create the keyin dimension, CTRL+E the dimension, then unmark it. When you run the program it will not prompt the operator and it will show up in your printout.

                  I've got a family of parts, 7 sizes, R & L, and use this multiple times in each program. Works well when looking for half angles too.
                  Last edited by dwade; 06-14-2007, 11:27 AM.
                  Xcel & MicroVal Pfx & Global 37mr4 thru 2012mr1sp3
                  Contura Calypso 5.4

                  Lord, keep Your arm around my shoulder and Your hand over my mouth. Amen.

                  Comment


                  • #10
                    Ross

                    Hey Craiger, I like your avatar. What made you decide to use Bob Ross. He's been dead for 20 years now, correct? He has a cult like following.

                    I was just discussing him recently with a co-worker. Do you remember his predeceesor, John Gnagy? He was the original TV artist (to me anyway). . . .

                    Comment


                    • #11
                      Originally posted by Don Ruggieri View Post
                      Hey Craiger, I like your avatar. What made you decide to use Bob Ross. He's been dead for 20 years now, correct? He has a cult like following.

                      I was just discussing him recently with a co-worker. Do you remember his predeceesor, John Gnagy? He was the original TV artist (to me anyway). . . .
                      Don,
                      I believe it is Wil Farrell dressed like the painting fella.
                      sigpic

                      James Mannes

                      Comment

                      Related Topics

                      Collapse

                      Working...
                      X