Specifying Global Variables for the Design Constraints Equations

Next, you specify the global variables to use in the design constraint equations.

  1. In the Equations, Global Variables, and Dimensions dialog box, click Equation View , and under Global Variables, click the Add global variable cell.
  2. Since the design objective functions depend on the pin shaft diameter and the base length, create global variables for the pin shaft diameter and the base length:
    1. In the first row under Global Variables, enter Pin Shaft Diameter and press Tab.
      By default, as you enter the global variable name, the text appears in red. After you press Tab to complete the global variable name, the global variable name appears in orange and in quotes.
      An equal sign appears in the Value / Equation column.
    2. In the Value / Equation column, enter "D1@Sketch2" after the equal sign.
      "D1@Sketch2" is the diameter of Boss-Extrude2, the pin shaft.
      When entering equations in the Value / Equation column, you must enter the dimensions and global variables in quotes.
    3. Press Tab.
      Pressing Tab enters your expression and the value 0.46879, the diameter of the pin shaft, appears in the Evaluates to column.
    4. In the second row under Global Variables, enter Base Length and press Tab.
    5. In the Value / Equation column, enter "D1@Boss-Extrude3" after the equal sign.
      You must include the quotes when entering the dimension.
      "D1@Boss-Extrude3" is the length of Boss-Extrude3, the base.
    6. Press Tab.
      Pressing Tab enters your expression and the value 2, the length of the base, appears in the Evaluates to column.