FamilyItemFactory.NewExtrusion
Description:
Add a new Extrusion instance into the Autodesk Revit family document.
Add a new Extrusion instance into the Autodesk Revit family document.
Remarks:
This method creates an extrusion in a family document. The extrusion will be extended perpendicular to the sketch plane of the extrusion profile.
This method creates an extrusion in a family document. The extrusion will be extended perpendicular to the sketch plane of the extrusion profile.
public Extrusion NewExtrusion(
bool isSolid,
CurveArrArray profile,
SketchPlane sketchPlane,
double end
)
-
BooleanisSolidIndicates if the Extrusion is Solid or Void.
-
profileThe profile of the newly created Extrusion. This may contain more than one curve loop. Each loop must be a fully closed curve loop and the loops may not intersect. All input curves must lie in the same plane. The loop can be a unbound circle or ellipse, but its geometry will be split in two in order to satisfy requirements for sketches used in extrusions.
-
sketchPlaneThe sketch plane for the extrusion. The direction of extrusion is determined by the normal for the sketch plane. To extrude in the other direction set the end value to negative.
-
DoubleendThe length of the extrusion.
Return Value
Extrusion
If creation was successful the new Extrusion is returned,
otherwise an exception with failure information will be thrown.
-
Thrown when the input argument-profile-isor empty array.
-
Thrown when the input argument-sketchPlane-is.
-
Thrown when the input argument-sketchPlane-is an invalid sketch plane.
-
Thrown when the creation failed.