123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using Autodesk.Revit.UI;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace FWindSoft.Revit
- {
-
- /// <summary>
- /// revit扩展事件使用参数
- /// </summary>
- public class RevitEventArgs : EventArgs
- {
- /// <summary>
- /// 处理过
- /// </summary>
- public bool Handled
- {
- get;
- set;
- }
- /// <summary>
- /// 关联UiApp
- /// </summary>
- public UIApplication UIApp { get; internal set; }
- /// <summary>
- /// 当前操作类
- /// </summary>
- public RevitHandler Handler{
- get; internal set;
- }
- public HandlerResult Result { get; internal set; }
- public object Tag { get; set; }
- }
- #region 执行结果
- public enum HandlerResult
- {
- /// <summary>
- /// 未进行执行
- /// </summary>
- None,
- /// <summary>
- /// 执行成功
- /// </summary>
- Successed,
- /// <summary>
- /// 执行失败
- /// </summary>
- Failed,
- /// <summary>
- /// 中断
- /// </summary>
- Abort,
- }
- #endregion
- }
|