Skip to content

Element Geometry

Read the 2D and 3D bounding boxes of elements.

Access this group through api.official.element_geometry.

Commands

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:

Returns:

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:

Returns:

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