Relative references
- Last UpdatedJul 26, 2024
- 1 minute read
References that go up the hierarchy to parent objects are called relative references. For more information about hierarchy, see ApplicationObject containment.
Relative references, such as Me, are valid reference strings. A valid reference string must always contain at least a relative reference or one substring.
The following are valid relative references that refer to the current object:
|
|
|
|
|
|
Relative references are especially useful in templates because absolute references typically do not apply or make sense.
When you use relative references, like MyContainer, you can refer to contained objects within that container. For example, a reference to MyContainer.InletValve.PV is equivalent to Tank1.InletValve.PV in the following hierarchy:
|
Tank1 |
Cannot reference at this level because this is not contained |
|
Inlet Valve (InletValve) |
Can reference at this level because this object is contained |
|
Outlet Valve (OutletValve) |
Can reference at this level because this object is contained |