GeometryCreationUtilitiesCreateExtrusionGeometry(IListCurveLoop, XYZ, Double, SolidOptions) Method |
Creates a solid by linearly extruding one or more closed coplanar curve loops.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic static Solid CreateExtrusionGeometry(
IList<CurveLoop> profileLoops,
XYZ extrusionDir,
double extrusionDist,
SolidOptions solidOptions
)
Public Shared Function CreateExtrusionGeometry (
profileLoops As IList(Of CurveLoop),
extrusionDir As XYZ,
extrusionDist As Double,
solidOptions As SolidOptions
) As Solid
public:
static Solid^ CreateExtrusionGeometry(
IList<CurveLoop^>^ profileLoops,
XYZ^ extrusionDir,
double extrusionDist,
SolidOptions^ solidOptions
)
static member CreateExtrusionGeometry :
profileLoops : IList<CurveLoop> *
extrusionDir : XYZ *
extrusionDist : float *
solidOptions : SolidOptions -> Solid
Parameters
- profileLoops IListCurveLoop
-
The profile loops to be extruded. The loops must be closed, coplanar, and without intersections, self-intersections, or degeneracies. No loop may contain just one closed curve - split such loops into two or more curves beforehand.
No conditions are imposed on the orientations of the loops: this function will use copies of the input loops that have been oriented as necessary to conform to Revit's orientation conventions.
- extrusionDir XYZ
-
The direction in which to extrude the profile loops. This vector must be non-zero and transverse
(i.e., not parallel) to the plane of the profile loops. Its length is irrelevant; only its direction is used.
- extrusionDist Double
-
The positive distance by which the loops are to be extruded in the direction of the input extrusionDir.
- solidOptions SolidOptions
-
The optional information to control the properties of the Solid.
Return Value
Solid
The requested solid.
ExceptionsException | Condition |
---|
ArgumentException |
The profile CurveLoops do not satisfy the input requirements.
-or-
The Input extrusionDir must be a non-zero vector.
The normal of the loop plane should not be perpendicular to the given extrusionDir.
-or-
The input argument extrusionDist must be positive.
|
ArgumentNullException |
A non-optional argument was null
|
See Also