Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Group

Generic

Description

This function takes

Take an existing object and

returns

return its associated

ID

identifier.

Required Control

none

None

Usage

outputId

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

Refer to API →

See example Multi_Models

example

.

Related Items

OP_OBJECT_TYPE, OP_REF_ID

Modules

import RtlabApi