namespace ShrlAlgo.Toolkit.Revit.Helpers; /// /// 族文档可用 /// internal class EnableInFamilyDocument : IExternalCommandAvailability { public bool IsCommandAvailable(UIApplication applicationData, CategorySet selectedCategories) => applicationData.ActiveUIDocument?.Document.IsFamilyDocument == true; }