6. Creating and Using Basic Fields : Common Field Properties : Field Variables
 
Share this page                  
Field Variables
When you create a named field, OpenROAD Workbench also creates a variable that you can use in a script to refer to the field. The name of the variable is the same as the name of the field.
When you create a field using the Frame Editor, Workbench creates a default name, fieldn, for all except the following:
Composite fields (except table fields)
Shape fields
Trim fields
In most cases, it is a good idea to change the default name to a name that is meaningful. You can use the Currently Selected field in the Property Inspector to provide a name for an unnamed field. For more information, see Property Inspector.
The variable associated with a field contains the field's value. To refer to a field's attributes in a script, you must use the field function.
For more information about field variables and the field function, see the Programming Guide.