GetBoundingBoxVolume

double GetBoundingBoxVolume(this Element element, View? view = null)

Computes the volume of the axis-aligned bounding box (in internal units^3). Returns 0 if unavailable.

Parameters

  • elementElement

    The element to inspect.

  • viewView?

    Optional view context.

Returns: Bounding box volume (feet^3), or 0 if unavailable.

Example

double v = element.GetBoundingBoxVolume();