Implement this method to provide control over whether your external command is enabled or disabled.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 22.0.0.0 (22.1.1.0)
Syntax
Visual Basic |
---|
Function IsCommandAvailable ( _
applicationData As UIApplication, _
selectedCategories As CategorySet _
) As Boolean |
Parameters
- applicationData
- Type: Autodesk.Revit.UI..::..UIApplication
An ApplicationServices.Application object which contains reference to Application
needed by external command.
- selectedCategories
- Type: Autodesk.Revit.DB..::..CategorySet
An list of categories of the elements which have been selected in Revit in the active document,
or an empty set if no elements are selected or there is no active document.
Return Value
Indicates whether Revit should enable or disable the corresponding external command.
Remarks
See Also