MBIConst.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* ==============================================================================
  2. * 功能描述:MBIConst
  3. * 创 建 者:Garrett
  4. * 创建日期:2018/3/13 19:31:08
  5. * ==============================================================================*/
  6. using System;
  7. using System.IO;
  8. using SAGA.DotNetUtils;
  9. namespace ServiceRevitLib.Common
  10. {
  11. /// <summary>
  12. /// MBIConst
  13. /// </summary>
  14. public class MBIConst
  15. {
  16. public static readonly string MBIResourcePath = Path.Combine(AppBaseInfo.DllRunPath, "MBIResource");
  17. /// <summary>
  18. /// 设备本地编码
  19. /// </summary>
  20. public readonly static string EquipLocalID = "设备本地编码";
  21. /// <summary>
  22. /// 设备本地名称
  23. /// </summary>
  24. public readonly static string EquipLocalName = "设备本地名称";
  25. /// <summary>
  26. /// 立管开始标志[start]
  27. /// </summary>
  28. public static string StartFlag { get; private set; } = "start";
  29. //最少空间的面积. 0.4m 削减因子: 1
  30. public static readonly double SpacePerimeterTolerance = Math.Pow(0.4 * 1000 / 304.8, 2) / 100;
  31. //最小空间的周长. 0.4m 削减因子: 1
  32. public static readonly double SpaceAreaTolerance = (0.4 * 1000 / 304.8 * 4) / 100;
  33. }
  34. }