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