using Autodesk.Revit.UI; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FWindSoft.Revit { /// /// 空闲命令 /// public class IdlingCommand { #region 构造函数 public IdlingCommand(RevitHandler handler) { this.Handler = handler; } #endregion #region 实例相关方法 /// /// 命令实际处理者 /// public RevitHandler Handler { get; private set; } /// /// 触发命令【raise把命令发给接受者】 /// /// public void Raise(UIApplication uiApplication) { if (Handler == null) { return; } Handler.Execute(uiApplication); } #endregion } }