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