Kaynağa Gözat

mxg:Space导出添加height参数

mengxiangge 5 yıl önce
ebeveyn
işleme
63a288b367

+ 1 - 0
Executer/DataExport/JBIM/Component/Space.cs

@@ -23,5 +23,6 @@ namespace JBIM.Component
             BoundarySegments = new List<List<BimId>>();
         }
         public List<List<BimId>> BoundarySegments { get; private set; }
+        public double Height { get; set; }
     }
 }

+ 1 - 0
Executer/DataExport/RevitToJBim/ComponentParse/ParseSpace.cs

@@ -53,6 +53,7 @@ namespace RevitToJBim.ComponentParse
                 bimObject.Location =
                     GeometryLocation.CreatePointLocation(BimConvert.ConvertToXYZ(location));
             }
+            bimObject.Height = (space.GetTopStaticHeight() - space.GetBaseStaticHeight()).FtToUse();
 
             //Parameters
             bimObject.Parameters = RevitUtil.GetSpaceParameters(space);