From b67e46c0dc3eee8572f4cf9c9cdef339949f536b Mon Sep 17 00:00:00 2001 From: RobClaessensRHDHV <43778345+RobClaessensRHDHV@users.noreply.github.com> Date: Wed, 17 Apr 2024 18:57:57 +0200 Subject: [PATCH] Fix bug in SetSpaceLimits. (#3129) * Fix bug in SetSpaceLimits. * Reformat using CSharpier. --- .../PartialClasses/ConvertSpace.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertSpace.cs b/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertSpace.cs index 328c7c4db8..d634e1f06a 100644 --- a/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertSpace.cs +++ b/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertSpace.cs @@ -133,9 +133,16 @@ private void SetSpaceLimits(Space speckleSpace, Element upperLimit, DB.Space rev } TrySetParam(revitSpace, BuiltInParameter.ROOM_UPPER_LEVEL, upperLimit); - - revitSpace.LimitOffset = ScaleToNative(speckleSpace.topOffset, speckleSpace.units); - revitSpace.BaseOffset = ScaleToNative(speckleSpace.baseOffset, speckleSpace.units); + TrySetParam( + revitSpace, + BuiltInParameter.ROOM_UPPER_OFFSET, + ScaleToNative(speckleSpace.topOffset, speckleSpace.units) + ); + TrySetParam( + revitSpace, + BuiltInParameter.ROOM_LOWER_OFFSET, + ScaleToNative(speckleSpace.baseOffset, speckleSpace.units) + ); } ///