RevitEventArgs.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using Autodesk.Revit.UI;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace FWindSoft.Revit
  8. {
  9. /// <summary>
  10. /// revit扩展事件使用参数
  11. /// </summary>
  12. public class RevitEventArgs : EventArgs
  13. {
  14. /// <summary>
  15. /// 处理过
  16. /// </summary>
  17. public bool Handled
  18. {
  19. get;
  20. set;
  21. }
  22. /// <summary>
  23. /// 关联UiApp
  24. /// </summary>
  25. public UIApplication UIApp { get; internal set; }
  26. /// <summary>
  27. /// 当前操作类
  28. /// </summary>
  29. public RevitHandler Handler{
  30. get; internal set;
  31. }
  32. public HandlerResult Result { get; internal set; }
  33. public object Tag { get; set; }
  34. }
  35. #region 执行结果
  36. public enum HandlerResult
  37. {
  38. /// <summary>
  39. /// 未进行执行
  40. /// </summary>
  41. None,
  42. /// <summary>
  43. /// 执行成功
  44. /// </summary>
  45. Successed,
  46. /// <summary>
  47. /// 执行失败
  48. /// </summary>
  49. Failed,
  50. /// <summary>
  51. /// 中断
  52. /// </summary>
  53. Abort,
  54. }
  55. #endregion
  56. }