11 lines
356 B
C#
11 lines
356 B
C#
|
|
using Autodesk.Revit.DB;
|
|||
|
|
using Autodesk.Revit.UI;
|
|||
|
|
|
|||
|
|
namespace ShrlAlgo.Toolkit.Revit.Helpers;
|
|||
|
|
/// <summary>
|
|||
|
|
/// 已经打开文档
|
|||
|
|
/// </summary>
|
|||
|
|
public class HasActiveDocument : IExternalCommandAvailability
|
|||
|
|
{
|
|||
|
|
public bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories) => applicationData.ActiveUIDocument != null;
|
|||
|
|
}
|