FamilyItemFactoryNewExtrusionForm Method |
Create new Form element by Extrude operation, and add it into the Autodesk Revit family document.
Namespace: Autodesk.Revit.CreationAssembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntaxpublic 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.
ExceptionsException | Condition |
---|
InvalidOperationException |
Thrown when creation is attempted in Conceptual Mass, 2D, or other family where extrusions cannot be created.
|
See Also