Element Relation¶
Find elements related to zones.
Access this group through api.official.element_relation.
Commands¶
No commands match. Try another name or clear the filter.
For exceptions shared by Unified API commands, see error handling.
get_elements_related_to_zones ¶
get_elements_related_to_zones(
zones: list[ElementIdArrayItem],
element_types: None | list[ElementType] = None,
) -> list[ElementsWrapper | ErrorItem]
Returns related elements of the given zones. The related elements will be grouped by type. If multiple zones was given, then the order of the returned list is that of the given zones.
Parameters:
-
zones(list[ElementIdArrayItem]) –A list of elements.
-
element_types(None | list[ElementType], default:None) –If this parameter is given, then only related elements with the requested types will be listed.
Returns:
-
list[ElementsWrapper | ErrorItem]–A list of ElementsOrError items.
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.