Exemplo n.º 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 TimeHistoryDirectLinear Add(ApiCSiApplication app, Analyzer analyzer, string uniqueName)
        {
            ApiTimeHistory apiTimeHistoryDirectLinear = getApiLoadCase(app).TimeHistoryDirectLinear;

            apiTimeHistoryDirectLinear?.SetCase(uniqueName);
            return(Factory(app, uniqueName));
        }
Exemplo n.º 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)
 {
     _timeHistoryDirectLinear?.SetCase(name);
     FillData();
 }