Creates a new instance of an unbound linear curve.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public static Line CreateUnbound(
XYZ origin,
XYZ direction
)
Parameters
- origin XYZ
-
The origin of the unbound line.
- direction XYZ
-
The direction of the unbound line.
Return Value
Line
The new unbound line.
Exceptions
Example
C#
XYZ startPoint = new XYZ(0, 0, 0);
XYZ directionPt = new XYZ(10, 10, 10);
Line line = Line.CreateUnbound(startPoint, directionPt);
VB
Dim startPoint As New XYZ(0, 0, 0)
Dim directionPt As New XYZ(10, 10, 10)
Dim line__1 As Line = Line.CreateUnbound(startPoint, directionPt)
See Also
Reference