コード例 #1
0
        /// <summary>
        /// Returns a new load case class.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="loadCases">The load cases.</param>
        /// <param name="analyzer">The analyzer.</param>
        /// <param name="uniqueName">Unique load case name.</param>
        /// <returns>Steel.</returns>
        internal static ResponseSpectrum Factory(
            ApiCSiApplication app,
            Analyzer analyzer,
            LoadCases loadCases,
            string uniqueName)
        {
            ResponseSpectrum loadCase = new ResponseSpectrum(app, analyzer, loadCases, 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 ResponseSpectrum Factory(string uniqueName)
        {
            if (Registry.Materials.Keys.Contains(uniqueName))
            {
                return((ResponseSpectrum)Registry.LoadCases[uniqueName]);
            }

            ResponseSpectrum loadCase = new ResponseSpectrum(uniqueName);

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