/// <summary> /// Returns the load data for the specified load case. /// </summary> /// <param name="app">The application.</param> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> protected void fillLoads(ILoadTimeHistory app) { if (app == null) { return; } app.GetLoads(Name, out var loadTypes, out var loadNames, out var loadFunctions, out var scaleFactor, out var timeFactor, out var arrivalTime, out var coordinateSystems, out var angles); _loads = new LoadsTimeHistory(); for (int i = 0; i < loadTypes.Length; i++) { LoadTimeHistory loadTimeHistory = new LoadTimeHistory() { LoadType = loadTypes[i], Load = LoadPattern.Factory(_apiApp, loadNames[i]), Function = loadFunctions[i], ScaleFactor = scaleFactor[i], TimeFactor = timeFactor[i], ArrivalTime = arrivalTime[i], CoordinateSystem = coordinateSystems[i], Angle = angles[i], }; Loads.Add(loadTimeHistory); } }
/// <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); } }