CreateBound Method


Line Create Bound Method

Creates a new instance of a bound linear curve.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public static Line CreateBound(
	XYZ endpoint1,
	XYZ endpoint2
)

Parameters

endpoint1 XYZ
The first line endpoint.
endpoint2 XYZ
The second line endpoint.

Return Value

Line
The new bound line.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was NULL
ArgumentsInconsistentException Curve length is too small for Revit's tolerance (as identified by Application.ShortCurveTolerance).
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 →