Displays, defines, and manipulates design variables and functional relationships between the variables. This table operates much like a software spreadsheet. The design variables can be dimensions in the document or variables defined with the Variable Table. Each row of the table displays a variable, with columns that display various properties for the variable, such as Name, Value, Rule, and Formula.
Unit Type
Specifies the unit of measure for the variable entered in the Variable Table. The Unit Type box is located in the top left corner of the Variable Table. The default type is distance, which means that any expression created will be a distance parameter. For example, if you want to create a variable to control an angular dimension, you should change the unit type to angular. Then, the variable created will be an angular type, which can be used to control an angular dimensional relationship.
Filter
Accesses the Filter dialog box.
Formula (Fx)
Accesses the Function Wizard dialog box.
Variable Rules
Accesses the Variable Rule Editor dialog box.
Accesses the Print dialog box so you can print the contents of the variable table.
The following items describe the columns in the Variable Table:
Type
Displays the variable type, generally the type of a dimension, such as Dim, Var, Scalar, and so forth. Dim refers to a dimensional relationship. Var refers to a variable that you have created. This option is read-only.
Name
Lists the name of the variable. When you place driving dimensions, the software automatically defines a variable name. You can change the name to a more logical name by editing the Name cell and then pressing Enter.
You must always name user-defined variables when you create them.
Variable names should meet the following requirements:
They must begin with a letter.
They must contain only letters, numbers, and the underscore character. You should not use punctuation characters.
They must be forty characters or less.
Note:
Variable names are not case-sensitive. For example, if you create the variable VAR1, you cannot create another variable named var1.
Value
Displays the current value of the variable. A variable always has a value. You cannot directly edit the value of a variable that is driven by a formula or expression. The background color of the cell for a driven variable indicates that you cannot edit the variable value directly.
Note:
If the background color in a Value cell is orange, it means that the value of a driven variable could not be changed because it would have violated a rule limiting its range of values.
Rule
Displays the type of rule that has been defined for a variable. The following lists the more common values listed in this box and their meaning. This option is read-only.
Blank--No rule defined.
Paste Link--The variable value is controlled by an associative link to a variable in another document, such as an Excel spreadsheet or another Solid Edge document.
Formula--The variable value is controlled by a formula.
Discrete--The variable value must be one of a discrete set of values defined using the Variable Rule Editor dialog box.
Limit--The variable value must be within a min/max set of values defined using the Variable Rule Editor dialog box.
Formula
Displays the function or relation that defines the value of the variable. You can enter a mathematical expression in a cell in this column to calculate the value for a corresponding dimension. If the Formula cell is empty, then the variable value is independent of other variables.
You can use one or more variable names within a formula. For example, you can create the following formula for VAR1:
VAR2*VAR3.
In other words, VAR1=VAR2*VAR3.
If a value is defined by a formula, the formula appears in the Formula cell. You can enter an algebraic expression in the formula cell to define the value of the variable. The single line expression must be in standard VBScript syntax. The formula can include any available function. The resulting value of the formula is shown in the Value column of the variable.
The software provides a set of standard mathematical functions. You can also select Visual Basic functions that you wrote and saved. You can enter functions directly in the variable table with proper VBScript syntax, or you can use the Function Wizard to select and define the inputs to the function. If the function does not contain proper VBScript syntax, the software displays a message indicating that there is an error in the formula.
Range
Displays the range of values that are valid for the variable. This box is empty if no range has been defined.
Expose
Specifies whether the variable is exposed as a custom property.
See the Help topic, Expose A Variable As A Custom Property.
Exposed Name
Specifies the property name for a variable exposed as a custom property.
Comment
Lists comments that have been added for variable. This allows you to capture useful information you want concerning a variable. You can add comment by clicking in the comment box for variable, or by adding a comment on the Edit Formula command bar.