From 4f7829cb6e356bb9fc834da5b0c6efeee4ae71e8 Mon Sep 17 00:00:00 2001 From: Patrick He Date: Wed, 31 Jul 2024 14:35:49 +0200 Subject: [PATCH] Add filter to skip the modifying when the zone of space is null (#3525) Co-authored-by: Jinxuan He Co-authored-by: Dimitrie Stefanescu Co-authored-by: Claire Kuang --- .../ConverterRevitShared/PartialClasses/ConvertZone.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertZone.cs b/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertZone.cs index a0a1e699ca..a12b1f32d3 100644 --- a/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertZone.cs +++ b/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertZone.cs @@ -146,7 +146,7 @@ private DB.Zone CreateRevitZoneIfNeeded(Space speckleSpace, DB.Zone revitZone, P { revitZone = ConvertZoneToRevit(speckleSpace.zone, out _); } - else if (revitZone != null && revitZone.Phase.Name != targetPhase.Name) + else if (revitZone != null && revitZone.Phase.Name != targetPhase.Name && speckleSpace.zone != null) { Doc.Delete(revitZone.Id);