Revit 2025 API
Fabrication |
Gets the centerline of the bearer. The method is applicable only for bearer hanger.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public Line GetBearerCenterline()
Public Function GetBearerCenterline As Line
public: Line^ GetBearerCenterline()
member GetBearerCenterline : unit -> Line
Return Value
LineThe centerline of the bearer.

Exception | Condition |
---|---|
InvalidOperationException | The hanger is not a bearer hanger. |
See Also