Browse Source

xls:调整目录结构

xulisong 5 years ago
parent
commit
02bac91664

+ 0 - 2
JBIM/RevitToJBim/Common/RevitUtil.cs

@@ -208,8 +208,6 @@ namespace RevitToJBim.Common
 
                 //}
             }
-
-            //偏移位位置信息
             return polygons;
         }
     }

+ 6 - 3
JBIM/RevitToJBim/ComponentParse/ParseSpace.cs

@@ -47,9 +47,12 @@ namespace RevitToJBim.ComponentParse
             //}
             JSpace bimObject = new JSpace();
             ParseCore.AttachObject(bimObject, wrapper);
-            //bimObject.Location.Add(BimConvert.ConvertToXYZ(space.Location.GetPoint()));
-            bimObject.Location =
-                GeometryLocation.CreatePointLocation(BimConvert.ConvertToXYZ(space.Location.GetPoint()));
+            var location = space.Location.GetPoint();
+            if (location != null)
+            {
+                bimObject.Location =
+                    GeometryLocation.CreatePointLocation(BimConvert.ConvertToXYZ(location));
+            }        
             var segments = space.GetBoundarySegments(new SpatialElementBoundaryOptions());
             if (segments != null)
             {

+ 1 - 1
JBIM/RevitToJBim/Common/CurveExtension.cs

@@ -13,7 +13,7 @@ using System.Text;
 using System.Threading.Tasks;
 using SAGA.RevitUtils.Extends;
 
-namespace RevitToJBim.Common
+namespace RevitToJBim.Extension
 {
     public static class CurveExtension
     {

+ 1 - 1
JBIM/RevitToJBim/RevitToJBim.csproj

@@ -61,7 +61,7 @@
   <ItemGroup>
     <Compile Include="Common\CategoryGenerator.cs" />
     <Compile Include="Common\Converter.cs" />
-    <Compile Include="Common\CurveExtension.cs" />
+    <Compile Include="Extension\CurveExtension.cs" />
     <Compile Include="Common\ElementWrapperFactory.cs" />
     <Compile Include="Common\ExceptionUtil.cs" />
     <Compile Include="Common\FamilyType.cs" />