Revit 2025.3 API
UIApplicationCreate |
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
Exception | Condition |
---|---|
ArgumentNullException | Thrown when uiApplication or revitCommandId is . |
InvalidOperationException | Thrown when the given command already has been bound. |
See Also