Revit 2025.3 API
LineCreate |
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 )
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
Return Value
LineThe new unbound line.

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