Prechádzať zdrojové kódy

xls:修改配置信息

xulisong 6 rokov pred
rodič
commit
f6f5d875ab

+ 1 - 1
MBI/MBIResource/Config/MBI.config

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <configuration>
   <appSettings>
-    <add key="HttpSetting" value="HttpSetting - 测试.ini"/>
+    <add key="HttpSetting" value="HttpSetting.ini"/>
   </appSettings>
 </configuration>

+ 7 - 2
MBI/SAGA.MBI/RevitExport/ParseElement/ParseSpace.cs

@@ -4,6 +4,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 using Autodesk.Revit.DB.Mechanical;
+using SAGA.MBI.Tools;
 using SAGA.RevitUtils.Extends;
 
 namespace SAGA.MBI.RevitExport.ParseElement
@@ -24,11 +25,15 @@ namespace SAGA.MBI.RevitExport.ParseElement
                 Space space=wrapper.RefElement as Space;
                 if (space == null)
                     return;
-            
-                #region 轮廓变更
+                if (!space.IsSpace())
+                {
+                    return;
+                }
+                    #region 轮廓变更
                 var paths = space.GetBoundaryVertexes();
                 if (!paths.Any())
                     return;
+                
                 MbiSpace mbiSpace = new MbiSpace();
                 mbiSpace.Name = space.Name;
                 mbiSpace.Id = space.Id.ToString();