Line.CreateBound
Description:
Creates a new instance of a bound linear curve.
Creates a new instance of a bound linear curve.
// define start and end for bound line
XYZ startPoint = new XYZ(0, 0, 0);
XYZ endPoint = new XYZ(10, 10, 10);
// create line
Line line = Line.CreateBound(startPoint, endPoint);
-
A non-optional argument was NULL
-
Curve length is too small for Revit's tolerance (as identified by Application.ShortCurveTolerance).