Ejemplo n.º 1
0
        /// <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 TimeHistoryModalLinear Factory(ApiCSiApplication app, Analyzer analyzer, string uniqueName)
        {
            TimeHistoryModalLinear loadCase = new TimeHistoryModalLinear(app, analyzer, 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 TimeHistoryModalLinear Factory(string uniqueName)
        {
            if (Registry.Materials.Keys.Contains(uniqueName))
            {
                return((TimeHistoryModalLinear)Registry.LoadCases[uniqueName]);
            }

            TimeHistoryModalLinear loadCase = new TimeHistoryModalLinear(uniqueName);

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