Skip to content

Commit

Permalink
Fix bug in SetSpaceLimits. (#3129)
Browse files Browse the repository at this point in the history
* Fix bug in SetSpaceLimits.

* Reformat using CSharpier.
  • Loading branch information
RobClaessensRHDHV authored Apr 17, 2024
1 parent f0f9eb3 commit b67e46c
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
}

/// <summary>
Expand Down

0 comments on commit b67e46c

Please sign in to comment.