Skip to content

GeometryElement.GetBoundingBox

Public Class

Retrieves a box that encloses the geometry element.

Namespace: Autodesk.Revit.DB

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public BoundingBoxXYZ GetBoundingBox()

Return Value

BoundingBoxXYZ
The bounding box.

Remarks

Note: If the GeometryElement was obtained via Element.get_Geometry from an Element containing 2D geometry but no 3D geometry, the bounding box returned by this function may not be empty because it takes the 2D geometry into account.