Line
Create
|
Creates a new instance of an unbound linear curve.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was NULL |
| ArgumentOutOfRangeException | direction has zero length. |
| ArgumentsInconsistentException | Vector and origin cannot form a proper unbound line. |
C#
// define start point and direction for unbound line
XYZ startPoint = new XYZ(0, 0, 0);
XYZ directionPt = new XYZ(10, 10, 10);
// create line
Line line = Line.CreateUnbound(startPoint, directionPt);