Versions Compared

Key

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

Group

Generic

Description

Get the default values of some object attributes.
See the OP_ATTRIBUTE enumeration for a complete list of available attributes.

Required Control

None

Usage

attributeValues = rtlabApi.GetDefaultAttributes (ids, attributes)
ids = (OP_REF, ...)
attributes = (OP_ATTRIBUTE, ...)
attributeValues = (value1, ...)

Input

  • ids: Tuple of object ids on witch the GetDefaultAttributes function will act. The size of the array must be equal to size of attributes tuple.

  • attributes: Tuple of attributes to get on the corresponding objects specified with the ids argument. The size of the array must be equal to size of attributes tuple.

Output

  • attributesValues: Tuple of values corresponding to each object ids and attributes.

Exception

  • EOK: Success.

  • EINVAL: Invalid arguments specified.

  • EBADF: Model not specified by previous

OpalConnect
  • Connect or

OpalSetCurrentModel
  • OpenProject.

  • EIO: Error sending the request or receiving the reply.

Examples

None

Related Items

GetAttributes, SetAttributes, RestoreAttributes, OP_ATTRIBUTE.

Modules

import RtlabApi