Browse Source

xls:柱子信息完善

xulisong 5 years ago
parent
commit
354c3c2407
1 changed files with 7 additions and 1 deletions
  1. 7 1
      JBIM/RevitToJBim/ComponentParse/ParseColumn.cs

+ 7 - 1
JBIM/RevitToJBim/ComponentParse/ParseColumn.cs

@@ -43,10 +43,16 @@ namespace RevitToJBim.ComponentParse
             var polygonPath = RevitUtil.GetTopPolygon(familyInstance);
             if (polygonPath != null && polygonPath.Any())
             {
-                Polygon outLine = new Polygon(BimConvert.ConvertToXYZs(polygonPath));
+                Polygon outLine = new Polygon(BimConvert.ConvertToXYZs(polygonPath,true));
                 StandardUtil.ArrangeLoop(outLine);
                 jObject.OutLine.Add(outLine);
             }
+
+            var parameter = familyInstance.GetParameter(BuiltInParameter.WALL_ATTR_ROOM_BOUNDING);
+            if (parameter != null)
+            {
+                jObject.RoomBoundary=parameter.AsInteger() == 1;
+            }
             context.AddBimObject(jObject);          
             return new List<BimId>() { jObject.Id };
         }