/// <summary> /// Returns a new load combination class. /// </summary> /// <param name="app">The application.</param> /// <param name="analyzer">The analyzer.</param> /// <param name="loadCases">The load cases.</param> /// <param name="loadCombinations">The load combinations.</param> /// <param name="uniqueName">Unique load combination name.</param> /// <returns>Steel.</returns> internal static LoadCombination Factory( ApiCSiApplication app, Analyzer analyzer, LoadCases loadCases, LoadCombinations loadCombinations, string uniqueName) { LoadCombination loadCombination = new LoadCombination(app, analyzer, loadCases, loadCombinations, uniqueName); loadCombination.FillData(); return(loadCombination); }
/// <summary> /// Returns a new load combination class. /// </summary> /// <param name="uniqueName">Unique load combination name.</param> /// <returns>Steel.</returns> public static LoadCombination Factory(string uniqueName) { if (Registry.Materials.Keys.Contains(uniqueName)) { return(Registry.LoadCombinations[uniqueName]); } LoadCombination loadCombination = new LoadCombination(uniqueName); if (_loadCombinations != null) { loadCombination.FillData(); } Registry.LoadCombinations.Add(uniqueName, loadCombination); return(loadCombination); }