Create a variable
Create a variable in
Project view
.- InProject view, select the folder or object to contain the variable.
- In theProject viewtoolbar, selectAdd newand then selectVariable.
- (optional) To change the variable data type, inProperties, next to the variable name, select the existing data type and then select another data type.TIP:If you do not see the required option, selectShow all. Start typing to select the item to find.To define an array, selectArrayand then enter the array dimensions. Enter0to create an unconstrained array.
- InProperties, select and enter a value for the variable or create a dynamic link.If you edit an array variable value, the Array editor displays. For more information, see Array editor.For more information about dynamic links, see Create dynamic links.
- (optional) InProperties, select , selectDisplay name, and enter the display name.
- (optional) InProperties, select , selectDescription, and enter the description.
- (optional) Set the unit of measure for a variable.
- (optional) Add a range to a variable.
variable
Provide Feedback