Element Geometry¶
Read the 2D and 3D bounding boxes of elements.
Access this group through api.official.element_geometry.
Commands¶
No commands match. Try another name or clear the filter.
For exceptions shared by Unified API commands, see error handling.
get_2d_bounding_boxes ¶
get_2d_bounding_boxes(
elements: list[ElementIdArrayItem],
) -> list[BoundingBox2DWrapperItem | ErrorItem]
Get the 2D bounding box of elements identified by their GUIDs. The bounding box is calculated from the global origin on the floor plan view. The output is the array of the bounding boxes respective to the input GUIDs. Only works for elements detailed in Element Information.
Parameters:
-
elements(list[ElementIdArrayItem]) –A list of elements.
Returns:
-
list[BoundingBox2DWrapperItem | ErrorItem]–A list of 2D bounding boxes.
get_3d_bounding_boxes ¶
get_3d_bounding_boxes(
elements: list[ElementIdArrayItem],
) -> list[BoundingBox3DWrapperItem | ErrorItem]
Get the 3D bounding box of elements identified by their GUIDs. The bounding box is calculated from the global origin in the 3D view. The output is the array of the bounding boxes respective to the input GUIDs. Only works for elements detailed in Element Information.
Parameters:
-
elements(list[ElementIdArrayItem]) –A list of elements.
Returns:
-
list[BoundingBox3DWrapperItem | ErrorItem]–A list of 3D bounding boxes.
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.