/// <summary> /// Adds the load data for the analysis case. /// </summary> /// <param name="load">The load.</param> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> public void AddLoad(LoadPatternTuple load) { if (Loads.Contains(load)) { return; } Loads.Add(load); setLoads(); }
/// <summary> /// Returns the load data for the analysis case. /// </summary> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> public void FillLoads() { if (_app == null) { return; } _app.GetLoads(CaseName, out var loadTypes, out var loadNames, out var scaleFactors); for (int i = 0; i < loadTypes.Length; i++) { LoadPatternTuple load = new LoadPatternTuple() { Load = LoadPattern.Factory(loadNames[i]), ScaleFactor = scaleFactors[i], LoadType = loadTypes[i] }; Loads.Add(load); } }
/// <summary> /// Removes the load data for the analysis case. /// </summary> /// <param name="load">The load.</param> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> public void RemoveLoad(LoadPatternTuple load) { Loads.Remove(load); setLoads(); }