CreateAddInCommandBinding Method


UIControlled Application Create Add In Command Binding Method

Creates a new AddInCommandBinding.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public AddInCommandBinding CreateAddInCommandBinding(
	RevitCommandId revitCommandId
)

Parameters

revitCommandId RevitCommandId
The Revit command id to identify the command handler you want to replace.

Return Value

AddInCommandBinding
Exceptions
Exception Condition
ArgumentNullException Thrown when uiApplication or revitCommandId is .
InvalidOperationException Thrown when the given command already has been bound.
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 →