CreateLoftGeometry Method


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: 17.0.0.0 (17.0.484.0)
Since: 2016

Syntax

C#
public static Solid CreateLoftGeometry(
	IList<CurveLoop> profileLoops,
	SolidOptions solidOptions
)
Visual Basic
Public Shared Function CreateLoftGeometry ( _
	profileLoops As IList(Of CurveLoop), _
	solidOptions As SolidOptions _
) As Solid
Visual C++
public:
static Solid^ CreateLoftGeometry(
	IList<CurveLoop^>^ profileLoops, 
	SolidOptions^ solidOptions
)

Parameters

profileLoops
Type: System.Collections.Generic IList CurveLoop
The array of curve loops, where the order of the array determines the lofting sequence used.
solidOptions
Type: Autodesk.Revit.DB SolidOptions
The optional information to control the properties of the solid or open shell.

Return Value

The requested solid or open shell.

Remarks

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.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException The number of profile CurveLoops is less than 2.
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL

See Also