NurbSpline.CreateCurve(HermiteSpline)
Method
Description:
Creates a new geometric Curve object by converting the given HermiteSpline. The created curve may be a NURBSpline or a simpler curve such as line or arc.
Creates a new geometric Curve object by converting the given HermiteSpline. The created curve may be a NURBSpline or a simpler curve such as line or arc.
Remarks:
The function does not support periodic Hermite curve.
The function does not support periodic Hermite curve.
Parameters
Parameter | Type | Description |
---|---|---|
hermiteSpline | HermiteSpline | The HermiteSpline that will be converted. |
Return Value
Type | Description |
---|---|
Curve | The new Curve object. |
Exceptions
Exception | Condition |
---|---|
ArgumentException | The given hermite spline has to be non-periodic. -or- Curve length is too small for Revit's tolerance (as identified by Application.ShortCurveTolerance). |
ArgumentNullException | A non-optional argument was NULL |