Share

UIApplication.CreateAddInCommandBinding Method

Creates a new AddInCommandBinding.


Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.3.0.0 (25.3.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

AddInCommandBinding

Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when uiApplication or revitCommandId is null.
InvalidOperationException Thrown when the given command already has been bound.

See Also

Reference

Was this information helpful?