From 18466315aa464f07597ae683e727f87b1bce58a1 Mon Sep 17 00:00:00 2001 From: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com> Date: Tue, 14 Nov 2023 15:48:28 +0000 Subject: [PATCH] Clearer error message for failed spaces (#3047) * Clearer error message for failed spaces * Update ConvertSpace.cs --- .../ConverterRevitShared/Partial Classes/ConvertSpace.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Objects/Converters/ConverterRevit/ConverterRevitShared/Partial Classes/ConvertSpace.cs b/Objects/Converters/ConverterRevit/ConverterRevitShared/Partial Classes/ConvertSpace.cs index 583e965eb8..e6d9facd89 100644 --- a/Objects/Converters/ConverterRevit/ConverterRevitShared/Partial Classes/ConvertSpace.cs +++ b/Objects/Converters/ConverterRevit/ConverterRevitShared/Partial Classes/ConvertSpace.cs @@ -27,6 +27,12 @@ public ApplicationObject SpaceToNative(Space speckleSpace) return appObj; // Determine Space Location + if (speckleSpace.basePoint is null) + { + appObj.Update(status: ApplicationObject.State.Failed, logItem: "Space Base Point was null"); + return appObj; + } + var level = ConvertLevelToRevit(speckleSpace.level, out _); var basePoint = PointToNative(speckleSpace.basePoint); var upperLimit = ConvertLevelToRevit(speckleSpace.topLevel, out _);