Browse Source

mxg:导出space添加Height参数

mengxiangge 5 years ago
parent
commit
9fbe8c2c12

+ 2 - 0
MBI/SAGA.MBI/RevitExport/Entity/MbiSpace.cs

@@ -18,5 +18,7 @@ namespace SAGA.MBI.RevitExport
             BoundarySegments = new List<List<BimId>>();
         }
         public List<List<BimId>> BoundarySegments { get; private set; }
+
+        public double Height { get; set; }
     }
 }

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

@@ -42,7 +42,8 @@ namespace SAGA.MBI.RevitExport.ParseElement
                     mbiSpace.Location =
                         GeometryLocation.CreatePointLocation(BimConvert.ConvertToXYZ(location));
                 }
-                
+
+                mbiSpace.Height = (space.GetTopStaticHeight() - space.GetBaseStaticHeight()).FtToUse();
                 var segments = space.GetBoundarySegments(new SpatialElementBoundaryOptions());
                 if (segments != null)
                 {