RevitProductExt.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. 
  2. /* ==============================================================================
  3. * 功能描述:Revit 版本信息 对RevitProduct进行一次包装
  4. * 创 建 者:SAGACLOUD
  5. * 创建日期:2017/9/17
  6. * ==============================================================================*/
  7. using System.IO;
  8. using Autodesk.RevitAddIns;
  9. namespace SAGA.RevitMenu.Addin
  10. {
  11. public class RevitProductExt
  12. {
  13. public RevitProductExt(RevitProduct rp)
  14. {
  15. this.Name = rp.Name;
  16. this.InstallLocation = rp.InstallLocation;
  17. this.RevitExeFile = Path.Combine(this.InstallLocation, "Revit.exe");
  18. this.CurrentUserAddInFolder = rp.CurrentUserAddInFolder;
  19. this.AllUsersAddInFolder = rp.AllUsersAddInFolder;
  20. this.Version = rp.Version.ToString();
  21. }
  22. /// <summary>
  23. /// 公用 用户的文件夹路径
  24. /// </summary>
  25. public string AllUsersAddInFolder { get; set; }
  26. /// <summary>
  27. /// 当前用户的文件夹路径
  28. /// </summary>
  29. public string CurrentUserAddInFolder { get; set; }
  30. /// <summary>
  31. /// Revit 安装路径
  32. /// </summary>
  33. public string InstallLocation { get; set; }
  34. public string Name { get; set; }
  35. public string RevitExeFile { get; set; }
  36. public string Version { get; set; }
  37. }
  38. }