Show in Frame No Frame
Up Previous Next Title Page Index Contents Search

6.2.8 Unique object identifier

Each design element within a repository system has an object identifier that is unique in that repository. This can be printed by:
oid
The object identifier is of the form 12_234. The number before the underscore is the projectId, the numerical id of the repository project in which the element is located. The number after the underscore is the objectId, the internal index for the element within that project. 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. (If uniqueness across repositories is required, see UUID Base64 properties in Section 2.6.4.)

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 6.1.9.

Show in Frame No Frame
Up Previous Next Title Page Index Contents Search