Curve collections
The Revit API uses different types of collections of curves as inputs:
- CurveLoop – this represents a specific chain of curves joined end-to-end. It can represent a closed loop or an open one. Create it using:
- CurveLoop.Create()
- CurveLoop.CreateViaCopy()
- CurveLoop.CreateViaThicken()
- CurveArray – this collection class represents an arbitrary collection of curves. Create it using its constructor.
- CurveArrArray – this collection class is a collection of CurveArrays. When this is used, the organization of the sub-elements of this array have meaning for the method this is passed to; for example, in NewExtrusion() multiple CurveArrays should represent different closed loops.
Newer API methods use .NET collections of Curves in place of CurveArray and CurveArrArray.