Weird variable help needed

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

  • Weird variable help needed

    Guys,

    I can't for the life of me figure this out. I am trying to assign the calculated dia
    as a variable (6mm_A1) as A1TOP

    I have one assigned right below it (bottom_a1) thats work just fine....

    See below :

    BOTTOM_A1 =FEAT/CIRCLE,RECT,OUT
    THEO/0,0,0,0,0,1,3.1315
    ACTL/0.0128,0.0434,0,0,0,1,2.7899
    CONSTR/CIRCLE,INTOF,WELL_A1,PLN_A1
    6MM_A1 =FEAT/CIRCLE,RECT,OUT
    THEO/0,0,11.56,0,0,1,3.6158
    ACTL/0.0128,0.0434,11.56,0,0,1,3.6404
    CONSTR/CIRCLE,CONE,HEIGHT,11.56,WELL_A1
    ASSIGN/A1TOP = 6MM_A1.DIAM
    ASSIGN/A1ANG = ((WELL_A1.ANGLE)/2)
    ASSIGN/A1BOT = BOTTOM_A1.D
    ASSIGN/A1SWAP = DEG2RAD(A1ANG)
    ASSIGN/A1TAN = TAN(A1SWAP)
    ASSIGN/A1VOL1 = (PI*HGT*A1BOT^2/4)
    ASSIGN/A1VOL2 = (PI*A1BOT*HGT^2*A1TAN/2)
    ASSIGN/A1VOL3 = (PI*HGT^3*A1TAN^2/3)
    ASSIGN/A1VOL = A1VOL1+A1VOL2+A1VOL3

    Any ideas appreciated.
    Jim Jewell

  • #2
    Jim,

    I think all you need is 6MM_A1.D.MEAS

    John

    Also, notice that you have different syntax
    ASSIGN/A1TOP = 6MM_A1.DIAM

    ASSIGN/A1BOT = BOTTOM_A1.D
    When in doubt, post code. A second set of eyes might see something you missed.
    sigpic

    Comment


    • #3
      What took you so long ??

      John,

      You are quick on the draw, tnx, but I tried using just ".D" as in the other one below, but to no avail. You cant use .dim.meas, to my knowledge.
      Jim Jewell

      Comment


      • #4
        try deleting the line and retyping. I have seen it not recognize it the first time (for unknown reasons)
        Links to my utilities for PCDMIS

        Comment


        • #5
          .MEAS is the extension for dimensions (it would be the measured field if 6MM_A1 were a dimension). I believe .D should return the measured diameter of that feature. I use it on 3.2063 and up.

          Craig
          <internet bumper sticker goes here>

          Comment


          • #6
            I Must Be Missing Something Else, I Tried Deleting And Doing It From
            Scratch. As Soon As I Pick Anything From The Drop Down List, It Says I"nvalid Expression . It Must Be More Obvious Than That...
            Jim Jewell

            Comment


            • #7
              I wonder if something is corrupt.
              <internet bumper sticker goes here>

              Comment


              • #8
                Corrupt ?

                Craig,

                My head, this board and this software (sometimes only).
                Jim Jewell

                Comment


                • #9
                  BOTTOM_A1 =FEAT/CIRCLE,RECT,OUT
                  THEO/0,0,0,0,0,1,3.1315
                  ACTL/0.0128,0.0434,0,0,0,1,2.7899
                  CONSTR/CIRCLE,INTOF,WELL_A1,PLN_A1
                  6MM_A1 =FEAT/CIRCLE,RECT,OUT
                  THEO/0,0,11.56,0,0,1,3.6158
                  ACTL/0.0128,0.0434,11.56,0,0,1,3.6404
                  CONSTR/CIRCLE,CONE,HEIGHT,11.56,WELL_A1

                  Jim,

                  I may be overthinking this, but, I noticed that you have an 11.56 value included in your construction features for the feature you are having issues with. Couldn't it be possible that due to the fact you are trying to assign a variable to something which has been constructed from a feature that PC-DMIS could view as an operator, perhaps this is causing some kind of glitch? Just for the heck of it, why not try using an underscore instead of the decimal just to see if it makes a difference.

                  Just an idea, cause I really don't see anything else that should cause any issues from what you posted.

                  HTH

                  Brad J.
                  DCCFreak

                  Comment


                  • #10
                    re: variable Help

                    Dimension diameter 6MM_A1
                    then assign A1_TOP=LOC4.D.MEAS
                    2014 SP5, DataPage + v5.0 #331
                    [testing v2015.1]

                    Comment


                    • #11
                      i FINALLY FIGURED IT OUT. THE NAME OF THE FEATURE STARTED WITH A NUMBER, IT DIDN'T LIKE THAT. i CHANGED THE NAME AND THAT FIXED IT.

                      THE THINGS THAT MAKE YOU GO HUH ???

                      TNX FOR ALL THE EFFORTS...
                      Jim Jewell

                      Comment


                      • #12
                        3.2063 right? Forgot about that you can't set a reference to a feature or dimension that starts with a number. I prefix my features with F and dimensions with D etc. I know 3.7 and up is not like that, I forget going back and fourth then it bites me. It may have changed in 3.5 I don't know I never used that one.

                        Craig
                        <internet bumper sticker goes here>

                        Comment


                        • #13
                          Originally posted by jjewell View Post
                          John,

                          You are quick on the draw
                          , tnx, but I tried using just ".D" as in the other one below, but to no avail. You cant use .dim.meas, to my knowledge.
                          Not sure how to take that,LOL, or how you would know.
                          Glad to see the others help you. I got tied up and never got back to the forum.
                          When in doubt, post code. A second set of eyes might see something you missed.
                          sigpic

                          Comment


                          • #14
                            Craig,

                            Actually ver 3.25mr3 (THE BEST EVER VERSION), but probably follows some
                            of the same syntax rules as 3.2063.....

                            John,

                            TOOOOOO much information dude...LOL
                            Jim Jewell

                            Comment


                            • #15
                              3.25 MR3, really? I have been a big fan of 3.2063 but do like some of the enhancements of 3.7, I don't like all of the features per say but some things from my wish list were incorporated and I have warmed up to it but the stability of 3.2063 is great. I can run 3.25 on 2 of my 3.2063 machines (I am not an SMA guy so I think 3.5 is tops for those 2 machines). I'll have to try it out. Thanks.

                              Craig
                              Last edited by craiger_ny; 12-14-2006, 08:19 AM. Reason: I said "wormed" up instead of "warmed" up. Although I may have wormed up to PCDMIS I meant warmed in this case
                              <internet bumper sticker goes here>

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X