|
@@ -47,9 +47,12 @@ namespace RevitToJBim.ComponentParse
|
|
|
|
|
|
JSpace bimObject = new JSpace();
|
|
|
ParseCore.AttachObject(bimObject, wrapper);
|
|
|
-
|
|
|
- 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)
|
|
|
{
|