Преглед изворни кода

xls:修改空间获取信息

xulisong пре 6 година
родитељ
комит
c0db07c43c

+ 5 - 5
MBI/SAGA.GplotRelationComputerManage/SystemRelation/SystemComputerHandler.cs

@@ -36,10 +36,10 @@ namespace SAGA.GplotRelationComputerManage
                 {
 
 #if DEBUG
-                    if (testFiles.All(f => !fileInfo.Contains(f)))
-                    {
-                        continue;
-                    }
+                    //if (testFiles.All(f => !fileInfo.Contains(f)))
+                    //{
+                    //    continue;
+                    //}
 #endif
                     FloorSystemItem floorItems = context.FloorItems.GetItem(fileInfo);
                     //FloorSystemItemTest floorItems = context.TestFloorItems.GetItem(fileInfo);
@@ -89,7 +89,7 @@ namespace SAGA.GplotRelationComputerManage
             // List<string> useRelations = new List<string>() { "ChillWaterLoop" };
             List<string> useRelations = RelationTypeManager.GetSystemRelationTypeNames();
 #if DEBUG
-            useRelations = new List<string>() { "ChillWaterLoop" };
+            //useRelations = new List<string>() { "ChillWaterLoop" };
 #endif
             SystemComputerHandler handler1 = new SystemComputerHandler();
             handler1.ComputerWidthCache(useRelations);

+ 5 - 1
MBI/SAGA.MBI/WinView/Space/SpaceManager.cs

@@ -153,7 +153,11 @@ namespace SAGA.MBI.WinView
 
                         Plane p = Plane.CreateByNormalAndOrigin(view.ViewDirection, view.Origin);
                         var sp = SketchPlane.Create(doc, p);
-                       doc.Create.NewRoomBoundaryLines(sp, curveArray, view);
+                        if (!curveArray.IsEmpty)
+                        {
+                            doc.Create.NewRoomBoundaryLines(sp, curveArray, view);
+                        }
+                     
 
                         #endregion