/// <summary>
        /// Returns a new load case class.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="analyzer">The analyzer.</param>
        /// <param name="uniqueName">Unique load case name.</param>
        /// <returns>Steel.</returns>
        internal static TimeHistoryModalNonlinear Factory(ApiCSiApplication app, Analyzer analyzer, string uniqueName)
        {
            TimeHistoryModalNonlinear loadCase = new TimeHistoryModalNonlinear(app, analyzer, uniqueName);

            loadCase.FillData();

            return(loadCase);
        }
示例#2
0
        /// <summary>
        /// Returns a new load case class.
        /// </summary>
        /// <param name="uniqueName">Unique load case name.</param>
        /// <returns>Steel.</returns>
        public new static TimeHistoryModalNonlinear Factory(string uniqueName)
        {
            if (Registry.Materials.Keys.Contains(uniqueName))
            {
                return((TimeHistoryModalNonlinear)Registry.LoadCases[uniqueName]);
            }

            TimeHistoryModalNonlinear loadCase = new TimeHistoryModalNonlinear(uniqueName);

            if (_loadCases != null)
            {
                loadCase.FillData();
            }
            Registry.LoadCases.Add(uniqueName, loadCase);
            return(loadCase);
        }