Geometry |
Creates a solid or open shell geometry by lofting between a sequence of curve loops.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

public static Solid CreateLoftGeometry(
IList<CurveLoop> profileLoops,
SolidOptions solidOptions
)
Parameters
- profileLoops IList CurveLoop
- The array of curve loops, where the order of the array determines the lofting sequence used.
- solidOptions SolidOptions
- The optional information to control the properties of the solid or open shell.
Return Value
SolidThe requested solid or open shell.

Exception | Condition |
---|---|
ArgumentException | The number of profile CurveLoops is less than 2. |
ArgumentNullException | A non-optional argument was null |

If all the curve loops are closed it will create a solid. No loop may contain just one closed curve - split such loops into two or more curves beforehand. If all the curve loops are open, then create an open shell. If there are both open and closed loops, only the first and/or last loop are allowed to be open, others (if they exist) must be closed. A solid will be created in this case. The surface of the solid or open shell will pass through these profiles blending smoothly between the profiles. Each profile loop must be free of intersections and degeneracies. No orientation conditions on the loops are imposed.
