GetBoundingBox

BoundingBoxXYZ? GetBoundingBox(this Element element, View? view = null)

Returns the element's bounding box in the given view context, or null if unavailable.

Parameters

  • elementElement

    The element to inspect.

  • viewView?

    Optional view context for view-dependent categories.

Returns: The BoundingBoxXYZ, or null if unavailable.

Example

BoundingBoxXYZ? box = element.GetBoundingBox();