IExternalDataManagerServerIsCommandEnabled Method

Checks if the command is enabled.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
bool IsCommandEnabled(
	Document document,
	ExternalDataManagerCommandId commandId,
	IList<ExternalDataManagerDataItemId> dataIds
)

Parameters

document  Document
The document.
commandId  ExternalDataManagerCommandId
The command name.
dataIds  IListExternalDataManagerDataItemId
The selected data ids.

Return Value

Boolean
Whether the command is enabled or not.
Remarks
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.
See Also