Revit 2025.3 API
Family |
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 )
Public Function NewExtrusionForm ( isSolid As Boolean, profile As ReferenceArray, direction As XYZ ) As Form
public: Form^ NewExtrusionForm( bool isSolid, ReferenceArray^ profile, XYZ^ direction )
member NewExtrusionForm : isSolid : bool * profile : ReferenceArray * direction : XYZ -> Form
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
FormIf creation was successful new form is returned.
| Exception | Condition |
|---|---|
| InvalidOperationException | Thrown when creation is attempted in Conceptual Mass, 2D, or other family where extrusions cannot be created. |
See Also