From 03d12aff036bf6676f82ba14cc71114997cfc62b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Steinhagen?= Date: Mon, 16 Sep 2024 17:30:52 +0200 Subject: [PATCH] bjorn/cnx-397-etabs-frame-properties (#3627) enum Update Duplicate enum pointing to essentially the same thing. STRUCTURAL_BOTTOM_RELEASE_ was used, but we also have a STRUCTURAL_START_RELEASE_ enum which returns something when calling get_Parameter(). The enum we were using always returns none for get_Parameter() hence why always defaulted to "F". --- .../PartialClasses/ConvertAnalyticalStick.cs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertAnalyticalStick.cs b/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertAnalyticalStick.cs index 3129e5b8fe..2da7027efe 100644 --- a/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertAnalyticalStick.cs +++ b/Objects/Converters/ConverterRevit/ConverterRevitShared/PartialClasses/ConvertAnalyticalStick.cs @@ -430,12 +430,12 @@ private void SetEndReleases(Element revitStick, ref Element1D speckleElement1D) } else { - var botReleaseX = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_BOTTOM_RELEASE_FX) == 1 ? "R" : "F"; - var botReleaseY = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_BOTTOM_RELEASE_FY) == 1 ? "R" : "F"; - var botReleaseZ = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_BOTTOM_RELEASE_FZ) == 1 ? "R" : "F"; - var botReleaseXX = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_BOTTOM_RELEASE_MX) == 1 ? "R" : "F"; - var botReleaseYY = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_BOTTOM_RELEASE_MY) == 1 ? "R" : "F"; - var botReleaseZZ = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_BOTTOM_RELEASE_MZ) == 1 ? "R" : "F"; + var botReleaseX = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_START_RELEASE_FX) == 1 ? "R" : "F"; + var botReleaseY = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_START_RELEASE_FY) == 1 ? "R" : "F"; + var botReleaseZ = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_START_RELEASE_FZ) == 1 ? "R" : "F"; + var botReleaseXX = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_START_RELEASE_MX) == 1 ? "R" : "F"; + var botReleaseYY = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_START_RELEASE_MY) == 1 ? "R" : "F"; + var botReleaseZZ = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_START_RELEASE_MZ) == 1 ? "R" : "F"; string botReleaseCode = botReleaseX + botReleaseY + botReleaseZ + botReleaseXX + botReleaseYY + botReleaseZZ; speckleElement1D.end1Releases = new Restraint(botReleaseCode); @@ -447,12 +447,12 @@ private void SetEndReleases(Element revitStick, ref Element1D speckleElement1D) } else { - var topReleaseX = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_TOP_RELEASE_FX) == 1 ? "R" : "F"; - var topReleaseY = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_TOP_RELEASE_FY) == 1 ? "R" : "F"; - var topReleaseZ = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_TOP_RELEASE_FZ) == 1 ? "R" : "F"; - var topReleaseXX = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_TOP_RELEASE_MX) == 1 ? "R" : "F"; - var topReleaseYY = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_TOP_RELEASE_MY) == 1 ? "R" : "F"; - var topReleaseZZ = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_TOP_RELEASE_MZ) == 1 ? "R" : "F"; + var topReleaseX = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_END_RELEASE_FX) == 1 ? "R" : "F"; + var topReleaseY = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_END_RELEASE_FY) == 1 ? "R" : "F"; + var topReleaseZ = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_END_RELEASE_FZ) == 1 ? "R" : "F"; + var topReleaseXX = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_END_RELEASE_MX) == 1 ? "R" : "F"; + var topReleaseYY = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_END_RELEASE_MY) == 1 ? "R" : "F"; + var topReleaseZZ = GetParamValue(revitStick, BuiltInParameter.STRUCTURAL_END_RELEASE_MZ) == 1 ? "R" : "F"; string topReleaseCode = topReleaseX + topReleaseY + topReleaseZ + topReleaseXX + topReleaseYY + topReleaseZZ; speckleElement1D.end2Releases = new Restraint(topReleaseCode);