AddItem Method


Radio Button Group Add Item Method

Adds a new ToggleButton to the RadioButtonGroup.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public ToggleButton AddItem(
	ToggleButtonData buttonData
)

Parameters

buttonData ToggleButtonData
An object containing the data needed to construct the ToggleButton.

Return Value

ToggleButton
The newly added ToggleButton.
Exceptions
Exception Condition
ArgumentNullException Thrown when buttonData is .
ArgumentException Thrown when button with buttonData.Name already exists in the group.
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 →