Пример #1
0
        /// <summary>
        /// Adds a new load case.
        /// If the name is not unique, the existing load case will be returned.
        /// </summary>
        /// <param name="app">The application.</param>
        /// <param name="analyzer">The analyzer.</param>
        /// <param name="loadPatterns">The load patterns.</param>
        /// <param name="loadCases">The load cases.</param>
        /// <param name="uniqueName">The unique name.</param>
        /// <returns>StaticNonlinear.</returns>
        /// <exception cref="T:MPT.CSI.API.Core.Support.CSiException">API_DEFAULT_ERROR_CODE</exception>
        internal static StaticNonlinear Add(
            ApiCSiApplication app,
            Analyzer analyzer,
            LoadPatterns loadPatterns,
            LoadCases loadCases,
            string uniqueName)
        {
            ApiStaticNonlinear apiStaticNonlinear = getApiLoadCase(app).StaticNonlinear;

            apiStaticNonlinear?.SetCase(uniqueName);
            return(Factory(app, analyzer, loadPatterns, loadCases, uniqueName));
        }
Пример #2
0
 // TODO: Work into factory
 /// <summary>
 /// Adds a new load case.
 /// If the name is not unique, the existing load case will be returned.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <exception cref="T:MPT.CSI.API.Core.Support.CSiException">API_DEFAULT_ERROR_CODE</exception>
 public void Add(string name)
 {
     _staticNonlinear?.SetCase(name);
     FillData();
 }