GetCenterPoint
XYZ? GetCenterPoint(this Element element, View? view = null)Returns a representative position: location point if available; otherwise the bounding box centroid (in model space) if available.
Parameters
- elementElement
The element to inspect.
- viewView?
Optional view context for bounding box.
Returns: A representative center point, or null if unavailable.
Example
XYZ? center = element.GetCenterPoint();