1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
-
- /* ==============================================================================
- * 功能描述:Revit 版本信息 对RevitProduct进行一次包装
- * 创 建 者:SAGACLOUD
- * 创建日期:2017/9/17
- * ==============================================================================*/
- using System.IO;
- using Autodesk.RevitAddIns;
- namespace SAGA.RevitUtility
- {
- public class RevitProductExt
- {
- public RevitProductExt(RevitProduct rp)
- {
- this.Name = rp.Name;
- this.InstallLocation = rp.InstallLocation;
- this.RevitExeFile = Path.Combine(this.InstallLocation, "Revit.exe");
- this.CurrentUserAddInFolder = rp.CurrentUserAddInFolder;
- this.AllUsersAddInFolder = rp.AllUsersAddInFolder;
- this.Version = rp.Version.ToString();
- }
- /// <summary>
- /// 公用 用户的文件夹路径
- /// </summary>
- public string AllUsersAddInFolder { get; set; }
- /// <summary>
- /// 当前用户的文件夹路径
- /// </summary>
- public string CurrentUserAddInFolder { get; set; }
- /// <summary>
- /// Revit 安装路径
- /// </summary>
- public string InstallLocation { get; set; }
- public string Name { get; set; }
- public string RevitExeFile { get; set; }
- public string Version { get; set; }
- }
- }
|