Component¶
List element components and read their property values.
Access this group through api.official.component.
Commands¶
No commands match. Try another name or clear the filter.
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:
-
elements(list[ElementIdArrayItem]) –A list of elements.
Returns:
-
list[ElementComponentsWrapper | ErrorItem]–Array of component list or error.
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:
-
element_components(list[ElementComponentIdArrayItem]) –List of components of elements.
-
properties(list[PropertyIdArrayItem]) –A list of property identifiers.
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.
Related types¶
These include the parameter and result models used inside the client. The command signatures above show what to pass and what is returned.