Assignment/ Variable

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

  • Assignment/ Variable

    I have to circles,different diameters,same "z","y" axis. I'm trying to get the distance between the bottom of each diameters radius along the "z" axis. Using distance from circle to circle with add or subtract radius doesnt work. I'm looking to use an assignment/variable to give me the distance. Any help? Thanks in advance.

  • #2
    They are the same on the Y and Z and you are looking for the distance in the Z, I am confused. It sounds like they are in the X workplane no? Am I right in reading that you want to know the difference in where the bottom of the "arc" of each circle is in the Z axis (I don't know if I am conveying this correctly)?
    <internet bumper sticker goes here>

    Comment


    • #3
      ASSIGN/V1=CIR1.Z-CIR1.R
      ASSIGN/V2=CIR2.Z-CIR1.R
      ASSIGN/V3=V2-V1
      sigpic
      Originally posted by AndersI
      I've got one from September 2006 (bug ticket) which has finally been fixed in 2013.

      Comment


      • #4
        I believe that's what I'm im looking for Matt. THANKS! One more quick question...how would I dimension this out on a report?

        Comment


        • #5
          Create a generic feature (point) and use the V3 as the Z actual. You will have to type in all the nominals and the variable. Just put your cursor at the end of your program, hit ENTER, then type in GENER and it will fill in for you, then you enter the noms, actuals, etc.
          sigpic
          Originally posted by AndersI
          I've got one from September 2006 (bug ticket) which has finally been fixed in 2013.

          Comment


          • #6
            Assignment/ Variable

            That's it! Thanks Matt. I truly appreciate the help.

            Comment


            • #7
              How did you learn that?

              Where did you learn the variable stuff at? I thought I was doing pretty good till I found out how little I do know of PCDMIS.
              REVERSE, REVERSE, REVERSE

              Comment


              • #8
                Bayorbear,

                You might want to take a look at the "Using Expressions and Variables" section of the help file; it has numerous examples of variable usage.
                Jared Hess - PC-DMIS Documentation Team Lead @ HMI
                [View 2008 Reporting Tutorials Here]

                Comment


                • #9
                  Assignment/Variables

                  Matt, I tried to do as you suggested with no luck. And the help file gives no example close to what i'm looking for. See my part program:

                  CIR-1 =AUTO/CIRCLE,SHOWALLPARAMS = YES,SHOWHITS = NO
                  THEO/-1.29,0,2.282,1,0,0,3.762
                  ACTL/-1.29,0,2.282,1,0,0,3.762
                  TARG/-1.29,0,2.282,1,0,0
                  THEO_THICKNESS = 0,RECT,IN,STRAIGHT,LEAST_SQR,ONERROR = NO,$
                  AUTO MOVE = NO,DISTANCE = 0.3,RMEAS = None,None,None,$
                  READ POS = NO,FIND HOLE = NO,REMEASURE = NO,$
                  NUMHITS = 4,INIT = 0,PERM = 0,SPACER = 0,PITCH = 0,$
                  START ANG = 20,END ANG = 160,DEPTH = 0,$
                  ANGLE VEC = 0,-1,0
                  CIR-2 =FEAT/CIRCLE,RECT,IN,LEAST_SQR
                  THEO/-2.495,0,2.4411,1,0,0,2.7441
                  ACTL/-2.495,0,2.4411,1,0,0,2.7441
                  MEAS/CIRCLE,4,WORKPLANE
                  HIT/BASIC,NORMAL,-2.495,1.0337,1.5389,0,-0.7534373,0.6575198,-2.495,1.0337,1.5389,USE THEO = YES
                  HIT/BASIC,NORMAL,-2.495,0.3891,1.1254,0,-0.2836238,0.9589356,-2.495,0.3891,1.1254,USE THEO = YES
                  HIT/BASIC,NORMAL,-2.495,-0.3767,1.1218,0,0.2745601,0.9615699,-2.495,-0.3767,1.1218,USE THEO = YES
                  HIT/BASIC,NORMAL,-2.495,-1.0252,1.5292,0,0.7471976,0.6646019,-2.495,-1.0252,1.5292,USE THEO = YES
                  ENDMEAS/
                  ASSIGN/V3 = CIR-2.Z-CIR-2.R
                  ASSIGN/V4 = CIR-1.Z-CIR-1.R
                  ASSIGN/V5 = V3-V4
                  F2 =GENERIC/POINT,DEPENDENT,RECT,$
                  NOM/XYZ,0,0,0,$
                  MEAS/XYZ,0,0,V5,$
                  NOM/IJK,0,0,1,$
                  MEAS/IJK,0,0,1
                  DIM LOC14= LOCATION OF POINT F2 UNITS=IN ,$
                  GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH
                  AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
                  Z 0.0000 0.0150 0.0150 0.0000 0.0000 0.0000 ----#----
                  END OF DIMENSION LOC14

                  Some "numbnut" changed cir-2 from an auto-circle, but this is basically it. "F2" equates to zero. Ive tried different ways with no success. Assignments V3 & V4 are "red" so i know somethings not right. Should I be enclosing my assiignments with () , {}, " ", or <>? What I'm looking for is:
                  cir-1 = 3.762 dia / 2 = 1.881 r (Z) 2.282 - (R) 1.881 = .401
                  cir-2 = 2.744 dia./2 = 1.372 r (Z) 2.441 - (R) = 1.069
                  1.069 - .401 = .668 This answer is what I'm trying to show on my report. I'm running ver. 3.6 .

                  Comment


                  • #10
                    Another question for variable use

                    I'm not real familiar with the HLL in PC-DMIS but should you not have to assign a variable to each characteristic you want use in the equation?

                    ASSIGN/V1 = CIR1.Z
                    ASSIGN/V2 = CIR1.R
                    ASSIGN/V3 = V1-V2
                    ASSIGN/V4 = CIR2.Z
                    ASSIGN/V5 = CIR2.R
                    ASSIGN/V6 = V4-V5
                    ASSIGN/V7 = V3-V6
                    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


                    • #11
                      YOU CAN NOT HAVE A "-" SIGN AS PART OF A FEATURE ID. Pcdmis always sees this as a minus sign in a variable assignment. Now, when you fix the ID's of the features, it will NOT update the assignments, they will have to be changed by hand, each one, it is not like dimensions that automatically update to the new feature ID.
                      sigpic
                      Originally posted by AndersI
                      I've got one from September 2006 (bug ticket) which has finally been fixed in 2013.

                      Comment


                      • #12
                        Ok, here I go with a dumb question....

                        Why can't you construct a line along the desired axis that is inline with the two diameter's centers. Intersect the line with the radius of each diameter and then do the distance between the two points along the Z axis??
                        Links to my utilities for PCDMIS

                        Comment


                        • #13
                          Without a diagram I could only guess. I would use offsets of the radius. This question has been asked before I think.
                          I used to be high on life but I built up a tolerance.

                          Brown & Sharpe Global Advantage
                          PCDMIS CAD++ v2011mr2
                          PH10MQ/SP600M


                          sigpic

                          Comment


                          • #14
                            Thanks for all the responses. I am wanting to get into using "assignments" more, but at this, i am willing to try any suggestions. My main concern is using the measured radius along the z axis of each circle. Reason for this is because at the bottom radius of one of the diameters is actually where a Datum is called out, and I need to report the distance between the two. A 2d distance along Z axis. Keeping in mind that the parts may vary in radius size.

                            Comment


                            • #15
                              I was wrong in my original question. The Z values are different, same Y.

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X