Create Method


Create a new parameter definition group using the name provided.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public DefinitionGroup Create(
	string name
)
Visual Basic
Public Function Create ( _
	name As String _
) As DefinitionGroup
Visual C++
public:
DefinitionGroup^ Create(
	String^ name
)

Parameters

name
Type: SystemString
The name of the group to be created.

Return Value

If successful a reference to the new parameter group is returned, otherwise a null reference (Nothing in Visual Basic).

Remarks

If a group with the same name already exists then an exception will be thrown.

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 →