M

IExternalDataManagerServer.IsCommandEnabled

Description:
Checks if the command is enabled.
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.
bool IsCommandEnabled(
	Document document,
	ExternalDataManagerCommandId commandId,
	IList<ExternalDataManagerDataItemId> dataIds
)
Return Value Boolean Whether the command is enabled or not.