Skip to content

Component

List element components and read their property values.

Access this group through api.official.component.

Commands

For exceptions shared by Unified API commands, see error handling.

get_components_of_elements

get_components_of_elements(
    elements: list[ElementIdArrayItem],
) -> list[ElementComponentsWrapper | ErrorItem]

Returns the identifier of every component for a list of elements. The order of the returned list is the same as the given elements.

Parameters:

Returns:

get_property_values_of_element_components

get_property_values_of_element_components(
    element_components: list[ElementComponentIdArrayItem],
    properties: list[PropertyIdArrayItem],
) -> list[ErrorItem | PropertyValuesWrapperItem]

Returns the property values of the components for the given property.

Parameters:

Returns:

  • list[ErrorItem | PropertyValuesWrapperItem] –

    List of property value lists. The order of the outer list is that of the given components. The order of the inner lists are that of the given properties.

These include the parameter and result models used inside the client. The command signatures above show what to pass and what is returned.