Creates a new AddInCommandBinding.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public AddInCommandBinding CreateAddInCommandBinding( RevitCommandId revitCommandId )
Parameters
- revitCommandId RevitCommandId
- The Revit command id to identify the command handler you want to replace.
Return Value
AddInCommandBindingExceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when uiApplication or revitCommandId is null. |
| InvalidOperationException | Thrown when the given command already has been bound. |
