From fe22d4d25b55d89c01d8a37cdaa4eb6a9b9b327b Mon Sep 17 00:00:00 2001 From: connorivy <43247197+connorivy@users.noreply.github.com> Date: Tue, 18 Oct 2022 08:57:28 -0400 Subject: [PATCH] Revit(Fix): Null value for receive mode setting causing conversion to fail (#1737) Co-authored-by: Connor Ivy --- .../ConverterRevit/ConverterRevitShared/ConverterRevit.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/Converters/ConverterRevit/ConverterRevitShared/ConverterRevit.cs b/Objects/Converters/ConverterRevit/ConverterRevitShared/ConverterRevit.cs index 092f374143..a94f4c1d3c 100644 --- a/Objects/Converters/ConverterRevit/ConverterRevitShared/ConverterRevit.cs +++ b/Objects/Converters/ConverterRevit/ConverterRevitShared/ConverterRevit.cs @@ -348,7 +348,7 @@ public object ConvertToNative(Base @object) { // Get settings for receive direct meshes , assumes objects aren't nested like in Tekla Structures Settings.TryGetValue("recieve-objects-mesh", out string recieveModelMesh); - if (bool.Parse(recieveModelMesh) == true) + if (bool.Parse(recieveModelMesh ?? "false") == true) { try {