diff --git a/MidasCivil_Adapter/PrivateHelpers/GetSectionMaterialCombinations.cs b/MidasCivil_Adapter/PrivateHelpers/GetSectionMaterialCombinations.cs index 6e87cc7f..0ba2945f 100644 --- a/MidasCivil_Adapter/PrivateHelpers/GetSectionMaterialCombinations.cs +++ b/MidasCivil_Adapter/PrivateHelpers/GetSectionMaterialCombinations.cs @@ -51,7 +51,11 @@ private static Dictionary GetSectionMaterialCombinatio materials.TryGetValue(materialId.ToString(), out material); sectionProperties.TryGetValue(sectionPropertyId.ToString(), out section); - if (section is ISectionProperty) + if(section is SteelSection || section is ConcreteSection || section is AluminiumSection || section is TimberSection) + { + materialSections.Add(materialId.ToString() + "," + sectionPropertyId.ToString(), section); + } + else { //Needed to get the ShapeProfile GenericSection genericSection = (GenericSection)section; @@ -101,10 +105,6 @@ private static Dictionary GetSectionMaterialCombinatio break; } } - else - { - materialSections.Add(materialId.ToString() + "," + sectionPropertyId.ToString(),section); - } }