Builds a mesh by extruding curve loop(s) along extrusion distance.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.3.0.0 (26.3.0.0)
Syntax
C#
public static MeshFromGeometryOperationResult CreateMeshByExtrusion( IList<CurveLoop> profileLoops, XYZ extrusionDirection, double extrusionDistance, ElementId materialId )
Parameters
- profileLoops IList<CurveLoop>
- The profile loops to be extruded. The loops will not be modified.
- extrusionDirection XYZ
- Direction of extrusion. The length of this vector is ignored.
- extrusionDistance Double
- The positive distance by which the loops are extruded in the direction of the input extrusionDir.
- materialId ElementId
- Material which should be used by a constructed mesh.
Return Value
MeshFromGeometryOperationResultReturns a mesh, which was constructed, and some additional information.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The input value cannot be used as thickness for an extrusion, or blend, or wall layer, or similar geometric construct. |
| ArgumentNullException | A non-optional argument was null |
| ArgumentOutOfRangeException | extrusionDirection has zero length. |
