5.5.8 Unique object
identifier
Each design element within the system has a unique object
identifier. This can be printed by:
oid
The object identifier is of the form 12_234,
where the number before the underscore refers to the repository area in which
the element is located and the number after the underscore is the unique
identifier for the element within that area. This object identifier is thus
useful when a unique tag for an element is required, e.g. if the element has no
properties, or if the identifier should remain the same even when the
element’s name changes.
The separate parts of the identifier can be output by the
projectId and
objectId commands. Note that if the
current element is not a proper design element, but just a Text or String, empty
strings are output in place of the numbers, so the result is just an
underscore.
The command can also be used to access elements in
containing loops by following the command with a semicolon and level number: see
“
Level number” in Section
5.4.2.