Example #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 TimeHistoryDirectLinear Factory(ApiCSiApplication app, Analyzer analyzer, string uniqueName)
        {
            TimeHistoryDirectLinear loadCase = new TimeHistoryDirectLinear(app, analyzer, uniqueName);

            loadCase.FillData();

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

            TimeHistoryDirectLinear loadCase = new TimeHistoryDirectLinear(uniqueName);

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