RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Line

Line.CreateUnbound

Method
Description:
Creates a new instance of an unbound linear curve.
Syntax
public static Line CreateUnbound(
	XYZ origin,
	XYZ direction
)
Examples
// 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);
Parameters
Parameter Type Description
origin XYZ The origin of the unbound line.
direction XYZ The direction of the unbound line.
Return Value
Type Description
Line The new unbound line.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was NULL
ArgumentOutOfRangeException direction has zero length.
ArgumentsInconsistentException Vector and origin cannot form a proper unbound line.