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);