NewExtrusionForm Method


Family Item Factory New Extrusion Form Method

Create new Form element by Extrude operation, and add it into the Autodesk Revit family document.

Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public Form NewExtrusionForm(
	bool isSolid,
	ReferenceArray profile,
	XYZ direction
)

Parameters

isSolid Boolean
Indicates if the Form is Solid or Void.
profile ReferenceArray
The profile of extrusion. It should consist of only one curve loop.
direction XYZ
The direction of extrusion, with its length the length of the extrusion. The direction must be perpendicular to the plane determined by profile. The length of vector must be non-zero.

Return Value

Form
If creation was successful new form is returned.
Exceptions
Exception Condition
InvalidOperationException Thrown when creation is attempted in Conceptual Mass, 2D, or other family where extrusions cannot be created.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →