Creates a new instance of an unbound linear curve.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since:
2014
Syntax
C# |
---|
public static Line CreateUnbound(
XYZ origin,
XYZ direction
) |
Visual Basic |
---|
Public Shared Function CreateUnbound ( _
origin As XYZ, _
direction As XYZ _
) As Line |
Visual C++ |
---|
public:
static Line^ CreateUnbound(
XYZ^ origin,
XYZ^ direction
) |
Return Value
The new unbound line.
Examples
CopyC#
XYZ startPoint = new XYZ(0, 0, 0);
XYZ directionPt = new XYZ(10, 10, 10);
Line line = Line.CreateUnbound(startPoint, directionPt);
CopyVB.NET
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)
Exceptions
See Also