コード例 #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="uniqueName">The unique name.</param>
 /// <returns>StaticLinear.</returns>
 /// <exception cref="T:MPT.CSI.API.Core.Support.CSiException">API_DEFAULT_ERROR_CODE</exception>
 internal static TimeHistoryDirectNonlinear Add(ApiCSiApplication app, Analyzer analyzer, string uniqueName)
 {
     ApiTimeHistory apiTimeHistoryDirectNonlinear = getApiLoadCase(app).TimeHistoryDirectNonlinear;
     apiTimeHistoryDirectNonlinear?.SetCase(uniqueName);
     return Factory(app, analyzer, uniqueName);
 }