Creates a new geometric Curve object from NURBS curve data containing just control points and weights.
The created curve may be a NURBSpline or a simpler curve such as line or arc.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.0.0.0)
Since:
2017
Syntax
C# |
---|
public static Curve CreateCurve(
IList<XYZ> controlPoints,
IList<double> weights
) |
Visual Basic |
---|
Public Shared Function CreateCurve ( _
controlPoints As IList(Of XYZ), _
weights As IList(Of Double) _
) As Curve |
Visual C++ |
---|
public:
static Curve^ CreateCurve(
IList<XYZ^>^ controlPoints,
IList<double>^ weights
) |
Parameters
- controlPoints
- Type: System.Collections.Generic..::..IList<(Of <(<'XYZ>)>)>
The control points of the NURBSpline.
- weights
- Type: System.Collections.Generic..::..IList<(Of <(<'Double>)>)>
The weights of the NURBSpline.
Return Value
The new Curve object.
Remarks
Exceptions
See Also