13 lines
353 B
C#
13 lines
353 B
C#
|
|
using Autodesk.Revit.DB;
|
|||
|
|
using Autodesk.Revit.UI;
|
|||
|
|
|
|||
|
|
namespace Szmedi.Toolkit.RvAssists
|
|||
|
|
{
|
|||
|
|
public class HasActiveDocument : IExternalCommandAvailability
|
|||
|
|
{
|
|||
|
|
public bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories)
|
|||
|
|
{
|
|||
|
|
return applicationData.ActiveUIDocument != null;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|