private static void setPREFERENCES_STEEL_DESIGN_ITALIAN_NTC_2008(Model model, List <Dictionary <string, string> > table) { foreach (Dictionary <string, string> tableRow in table) { NTC_2008_Preferences preferences = new NTC_2008_Preferences { MultiResponseCase = Enums.EnumLibrary.ConvertStringToEnumByDescription <eMultiResponseCase>(tableRow["THDesign"]), FrameType = Enums.EnumLibrary.ConvertStringToEnumByDescription <NTC_2008_Preferences.FrameTypes>(tableRow["FrameType"]), PatternLiveLoadFactor = Adaptor.toDouble(tableRow["PatLLF"]), DemandCapacityRatioLimit = Adaptor.toDouble(tableRow["SRatioLimit"]), MaximumIterations = Adaptor.toInteger(tableRow["MaxIter"]), IsDeflectionConsidered = Adaptor.fromYesNo(tableRow["CheckDefl"]), RatioDL = Adaptor.toDouble(tableRow["DLRat"]), RatioSDLAndLL = Adaptor.toDouble(tableRow["SDLAndLLRat"]), RatioLL = Adaptor.toDouble(tableRow["LLRat"]), RatioTotal = Adaptor.toDouble(tableRow["TotalRat"]), RatioNet = Adaptor.toDouble(tableRow["NetRat"]), GammaM0 = Adaptor.toDouble(tableRow["GammaM0"]), GammaM1 = Adaptor.toDouble(tableRow["GammaM1"]), GammaM2 = Adaptor.toDouble(tableRow["GammaM2"]), UseSeismicCode = Adaptor.fromYesNo(tableRow["SeisCode"]), UseSeismicLoading = Adaptor.fromYesNo(tableRow["SeisLoad"]), IsDoublerPlatePlugWelded = Adaptor.fromYesNo(tableRow["PlugWeld"]), DesignCombinationEquation = Enums.EnumLibrary.ConvertStringToEnumByDescription <NTC_2008_Preferences.DesignCombinationEquations>(tableRow["CombosEq"]), ReliabilityClass = Enums.EnumLibrary.ConvertStringToEnumByDescription <NTC_2008_Preferences.ReliabilityClasses>(tableRow["RelClass"]), InteractionFactorsMethod = Enums.EnumLibrary.ConvertStringToEnumByDescription <NTC_2008_Preferences.InteractionFactorsMethods>(tableRow["KFactorMethod"]), q0 = Adaptor.toDouble(tableRow["q"]), Omega = Adaptor.toDouble(tableRow["Omega"]) }; model.Design.SteelDesigner.SteelDesignPreferences.UpdateItem( SteelDesignPreferences <NTC_2008_Preferences> .Factory(preferences) ); } }
private static void setPREFERENCES_CONCRETE_DESIGN_ITALIAN_NTC_2008(Model model, List <Dictionary <string, string> > table) { foreach (Dictionary <string, string> tableRow in table) { NTC_2008_Preferences preferences = new NTC_2008_Preferences { MultiResponseCase = Enums.EnumLibrary.ConvertStringToEnumByDescription <eMultiResponseCase>(tableRow["THDesign"]), NumberOfInteractionCurves = Adaptor.toInteger(tableRow["NumCurves"]), NumberOfInteractionPoints = Adaptor.toInteger(tableRow["NumPoints"]), ConsiderMinimumEccentricity = Adaptor.fromYesNo(tableRow["MinEccen"]), PatternLiveLoadFactor = Adaptor.toDouble(tableRow["PatLLF"]), UtilizationFactorLimit = Adaptor.toDouble(tableRow["UFLimit"]), GammaS = Adaptor.toDouble(tableRow["GammaS"]), GammaC = Adaptor.toDouble(tableRow["GammaC"]), Theta0 = Adaptor.toDouble(tableRow["Theta0"]), AlphaCC = Adaptor.toDouble(tableRow["AlphaCC"]), AlphaCT = Adaptor.toDouble(tableRow["AlphaCT"]), AlphaLCC = Adaptor.toDouble(tableRow["AlphaLCC"]), AlphaLCT = Adaptor.toDouble(tableRow["AlphaLCT"]), DesignCombinationEquation = Enums.EnumLibrary.ConvertStringToEnumByDescription <NTC_2008_Preferences.DesignCombinationEquations>(tableRow["CombosEq"]), ReliabilityClass = Enums.EnumLibrary.ConvertStringToEnumByDescription <NTC_2008_Preferences.ReliabilityClasses>(tableRow["RelClass"]), SecondOrderMethod = Enums.EnumLibrary.ConvertStringToEnumByDescription <NTC_2008_Preferences.SecondOrderMethods>(tableRow["SOM"]) }; model.Design.ConcreteDesigner.ConcreteDesignPreferences = ConcreteDesignPreferences <NTC_2008_Preferences> .Factory(preferences); } }