IExternal
|
Checks if the command is enabled.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 27.0.4.0 (27.0.4.0)
bool IsCommandEnabled(
Document document,
ExternalDataManagerCommandId commandId,
IList<ExternalDataManagerDataItemId> dataIds
)
Parameters
- document Document
- The document.
- commandId ExternalDataManagerCommandId
- The command name.
- dataIds IList ExternalDataManagerDataItemId
- The selected data ids.
Return Value
BooleanWhether the command is enabled or not.
Revit calls this whenever the selection changes to grey-out commands
that are not currently applicable. The method should be FAST; avoid
any heavy processing or disk I/O.