CreateUnbound Method


Line Create Unbound Method

Creates a new instance of an unbound linear curve.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
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
Exception Condition
ArgumentNullException A non-optional argument was NULL
ArgumentOutOfRangeException direction has zero length.
ArgumentsInconsistentException Vector and origin cannot form a proper unbound line.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →