Creates a new instance of an unbound linear curve.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic static Line CreateUnbound(
XYZ origin,
XYZ direction
)
Public Shared Function CreateUnbound (
origin As XYZ,
direction As XYZ
) As Line
public:
static Line^ CreateUnbound(
XYZ^ origin,
XYZ^ direction
)
static member CreateUnbound :
origin : XYZ *
direction : XYZ -> Line
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
XYZ startPoint = new XYZ(0, 0, 0);
XYZ directionPt = new XYZ(10, 10, 10);
Line line = Line.CreateUnbound(startPoint, directionPt);
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)
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