Parcourir la source

xls:柱子信息完善

xulisong il y a 5 ans
Parent
commit
354c3c2407
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  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 };
         }