Global Variables
You can create global variables to use in equations. You define global variables in the Equations dialog box. For example, Well_Volume = 20000.
You can:
- Define global variables using other global variables and dimensions. For example, Height = "Well_Volume"/(pi*("D1@Sketch4"/2)^2)).
- Drive dimensions using global variables. For example, D1@Extrude1 = "Height".
- Share global variables among models.
- Configure global variables.
Global variables and their current values appear:
- In the Equations dialog box.
- In the Equations folder in the FeatureManager design tree.
- Under Value/Text Expression on the Custom tab in the Properties dialog box.
- Under Value/Text Expression in the Weldment dialog box.
Using Global Variables Instead of Linked Values
Global variables can be used for many of the same purposes as linked values (also referred to as shared values or linked dimensions). Global variables are much easier to find, change, and manage than linked values.
To use a global variable to link dimensions:
- Create a global variable in the Equations dialog box or the Modify dialog box for dimensions.
- Set two or more dimensions equal to the global variable.
When you change the value of a global variable, both dimensions are changed to the new value.
Adding a Global Variable in the Equations Dialog Box
To add a global variable in the Equation View: