UIApplication.CreateAddInCommandBinding Method

UIApplicationCreateAddInCommandBinding Method

Creates a new AddInCommandBinding.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public AddInCommandBinding CreateAddInCommandBinding(
	RevitCommandId revitCommandId
)
Public Function CreateAddInCommandBinding ( 
	revitCommandId As RevitCommandId
) As AddInCommandBinding
public:
AddInCommandBinding^ CreateAddInCommandBinding(
	RevitCommandId^ revitCommandId
)
member CreateAddInCommandBinding : 
        revitCommandId : RevitCommandId -> AddInCommandBinding 

Parameters

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

Return Value

AddInCommandBinding
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when uiApplication or revitCommandId is .
InvalidOperationException Thrown when the given command already has been bound.
See Also