RVTDocs.com

UIControlledApplication.CreateAddInCommandBinding

Method
Description:
Creates a new AddInCommandBinding.
Syntax
Parameters
Parameter Type Description
revitCommandId RevitCommandId The Revit command id to identify the command handler you want to replace.
Return Value
Exceptions
Exception Condition
ArgumentNullException Thrown when uiApplication or revitCommandId is.
InvalidOperationException Thrown when the given command already has been bound.