RVTDocs.com

AddInCommandBinding.CanExecute

Event
Description:
Occurs when the command associated with this AddInCommandBinding initiates a check to determine whether the command can be executed on the command target.
Remarks:
This callback will be called by Revit's user interface any time there is a contextual change. Therefore, the callback must be fast and is not permitted to be blocking in any way.