소스 검색

mxg:导出space添加Height参数

mengxiangge 5 년 전
부모
커밋
9fbe8c2c12
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 0
      MBI/SAGA.MBI/RevitExport/Entity/MbiSpace.cs
  2. 2 1
      MBI/SAGA.MBI/RevitExport/ParseElement/ParseSpace.cs

+ 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)
                 {