Browse Source

mxg:删除MBIConst,信标字段

mengxiangge 6 years ago
parent
commit
fed738e91a
2 changed files with 2 additions and 4 deletions
  1. 1 3
      MBI/SAGA.MBI/Common/MBIConst.cs
  2. 1 1
      MBI/SAGA.MBI/Extend/ElementExtend.cs

+ 1 - 3
MBI/SAGA.MBI/Common/MBIConst.cs

@@ -217,9 +217,7 @@ namespace SAGA.MBI.Common
         /// 拓扑图文件存放文件夹地址
         /// </summary>
         public static string OssGplotFilePrefix => $"test/files/revit/GplotData/{ MBIControl.ProjectCur.Id}";
-
-        //信标族名称
-        public static string BeaconFamilyName = "Beacon";
+        
         //空间的code类型
         public static string SpaceCode = "ispace";
         

+ 1 - 1
MBI/SAGA.MBI/Extend/ElementExtend.cs

@@ -82,7 +82,7 @@ namespace SAGA.MBI.Tools
         public static bool IsBeacon(this Element elem)
         {
             var family = elem.GetFamilyName();
-            return family != null && (Regex.IsMatch(family, MBIConst.BeaconFamilyName));
+            return family != null && (Regex.IsMatch(family, RegexConstPattern.IsBeacon));
         }
 
         /// <summary>