Assignments

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

  • Assignments



    I will try to expalin for some minor help. So here we go.

    I have one blueprint the shows the shank of a propeller EX. 1234
    in the left corner it has the numbers 1234-1 and 1234-2 which stands for 2 dimension that have 2 different angles. How can I use a comment-input to force assignment to fill in the blanks for these angles

    Example: What is the Blade Shank Detail number?

    if the operator types in a 1 the the assignment will be those angles and
    vis-versa. These assignment will fill in the blanks on on alignment rotations and callouts.

    Please help I must look smart for all the Indian Cheifs.
    sigpic

  • #2
    Assign a variable to the comment and if needed use a generic point and use the variable in it
    sigpic
    if you had soap on a rope it would be tied to yer ankle

    Comment


    • #3
      Use an input comment. The reference to it will be the comment name .input. Default is C1 so to reference it you would use C1.INPUT
      <internet bumper sticker goes here>

      Comment


      • #4
        Use IF/END IF commands like this:

        IF C1.INPUT=="1" then
        <your code here>
        END IF

        IF C1.INPUT=="2" then
        <your code>
        END IF
        I used to be high on life but I built up a tolerance.

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


        sigpic

        Comment


        • #5
          DOES THIS LOOK CORRECT?


          C3 =COMMENT/INPUT,NO,What is the Blade shank detail number?
          IF/C3.INPUT=="1"
          ASSIGN/V2 = 42
          ASSIGN/V3 = 8
          END_IF/
          IF/C3.INPUT=="2"
          ASSIGN/V2 = 39
          ASSIGN/V3 = 16
          END_IF/
          A6 =ALIGNMENT/START,RECALL:A4, LIST= YES
          ALIGNMENT/ROTATE_OFFSET,V2,ABOUT,XPLUS
          ALIGNMENT/END
          sigpic

          Comment


          • #6
            I think your gonna have problems...I believe when pcdmis looks for the variable value It will find & use the first one it sees in the program. What if you had two alignments and used goto's based on the operator input so you would have four variables.......just thinking out loud..

            Comment


            • #7
              Where is v3?
              I would do a generic feature to put in your alignment and assign v2-v3 to it
              sigpic
              if you had soap on a rope it would be tied to yer ankle

              Comment


              • #8
                I agree with Toms suggestion of using the generic feature...but i still think you will have problems with double variable names I am curious so i am going to try this out .........be back in a minute.....

                Comment


                • #9
                  No problem with the "double" variable. You may assign a variable at different times, and use gotos to skip other assignments...
                  Links to my utilities for PCDMIS

                  Comment


                  • #10
                    Originally posted by T Miller View Post
                    Where is v3?
                    I would do a generic feature to put in your alignment and assign v2-v3 to it

                    V3 is in another alignment.

                    Please show example.....
                    sigpic

                    Comment


                    • #11
                      You were right. I used the double variables with no problem. I learned something new today. Also i retract what i said about the generic feature. I think the way you are using the variable for an offset seems perfectly legit. It will work fine.

                      Comment


                      • #12
                        AuRules,

                        Put your alignment inside the IF/ENDIF. The program disregards those if it does not match your "1" or "2" etc. Should work.

                        But what you said should work also.
                        I used to be high on life but I built up a tolerance.

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


                        sigpic

                        Comment


                        • #13
                          I have had funny things happen to nominals when using variables in an alignment. Can't say it happens under all circumstances but if wierd things happen to you I'd be susspicious. Using a generic feature cures that.
                          <internet bumper sticker goes here>

                          Comment


                          • #14
                            I used variables for angles and offsets in an alignment and dont recall problems, but not to refer to another feature.
                            Links to my utilities for PCDMIS

                            Comment


                            • #15
                              It seems like it messed up my dimension nominals. I want to say I might have been looping. At any rate if he has problems I'd consider the generic feature, that fixed it for me.
                              <internet bumper sticker goes here>

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X