Next, you specify the global variables to use in the design constraint equations.
-
In the Equations, Global Variables, and
Dimensions dialog box, click Equation
View
, and under Global Variables, click the Add global variable cell.
- 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:
-
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.
-
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.
- Press Tab.
Pressing Tab enters your expression and
the value 0.46879,
the diameter of the pin shaft, appears in the Evaluates to column.
-
In the second row under Global Variables, enter Base Length and press Tab.
-
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.
- Press Tab.
Pressing Tab enters your expression and
the value 2,
the length of the base, appears in the Evaluates to column.