NewFormByCap Method


Create new Form element by cap operation (to create a single-surface form), and add it into the Autodesk Revit family document.

Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)

Syntax

C#
public Form NewFormByCap(
	bool isSolid,
	ReferenceArray profile
)
Visual Basic
Public Function NewFormByCap ( _
	isSolid As Boolean, _
	profile As ReferenceArray _
) As Form
Visual C++
public:
Form^ NewFormByCap(
	bool isSolid, 
	ReferenceArray^ profile
)

Parameters

isSolid
Type: System Boolean
Indicates if the Form is Solid or Void.
profile
Type: Autodesk.Revit.DB ReferenceArray
The profile of the newly created cap. It should consist of only one curve loop.

Return Value

If creation was successful new form is returned.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →