Revit 2025 API
LineCreate |
Creates a new instance of a bound linear curve.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static Line CreateBound( XYZ endpoint1, XYZ endpoint2 )
Public Shared Function CreateBound ( endpoint1 As XYZ, endpoint2 As XYZ ) As Line
public: static Line^ CreateBound( XYZ^ endpoint1, XYZ^ endpoint2 )
static member CreateBound : endpoint1 : XYZ * endpoint2 : XYZ -> Line
Parameters
Return Value
LineThe new bound line.
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was NULL |
| ArgumentsInconsistentException | Curve length is too small for Revit's tolerance (as identified by Application.ShortCurveTolerance). |
// define start and end for bound line XYZ startPoint = new XYZ(0, 0, 0); XYZ endPoint = new XYZ(10, 10, 10); // create line Line line = Line.CreateBound(startPoint, endPoint);
' define start and end for bound line Dim startPoint As New XYZ(0, 0, 0) Dim endPoint As New XYZ(10, 10, 10) ' create line Dim line__1 As Line = Line.CreateBound(startPoint, endPoint)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also