2026 Method
Changes 0
M

FamilyItemFactory.NewExtrusion

Description:
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.
public Extrusion NewExtrusion(
	bool isSolid,
	CurveArrArray profile,
	SketchPlane sketchPlane,
	double end
)
  • Boolean
    isSolid
    Indicates if the Extrusion is Solid or Void.
  • profile
    The 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.
  • sketchPlane
    The 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.
  • Double
    end
    The 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.