Retrieves a box that encloses the geometry element.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public BoundingBoxXYZ GetBoundingBox()
Return Value
BoundingBoxXYZThe 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.