Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

FindObjectId

Group

Generic

Description

Take an existing object and return its associated identifier.

Required Control

None

Usage

objects = RtlabApi.FindObjectId(ObjectType, path)

Input

  • ObjectType: The appropriate enum related to the desired object.

  • path: The absolute path to the desired object (the path is case sensitive).

Output

  • objects: object ID.

Exceptions

  • If multiple objects passed: Multiple results found. Please verify that the given path is unique.

  • Wrong path: No results found. Please verify that the given path exists => check for case sensitivity.

Examples

See example Multi_Models.

Related Items

OP_OBJECT_TYPE, OP_REF_ID

Modules

import RtlabApi



OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323