/// <summary> /// Assigns temperature loads to objects. /// </summary> /// <param name="app">The application.</param> /// <param name="temperatureLoad">The temperature load.</param> /// <param name="replace">True: All previous loads, if any, assigned to the specified object(s), in the specified load pattern, are deleted before making the new assignment.</param> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> protected void setLoadTemperature(ILoadTemperature app, LoadTemperature temperatureLoad, bool replace) { // TODO: Add to API project? app.SetLoadTemperature(Name, temperatureLoad.LoadPattern, temperatureLoad.TemperatureLoadType, temperatureLoad.Value, temperatureLoad.JointPatternName, replace); }
/// <summary> /// Assigns temperature loads to objects. /// </summary> /// <param name="app">The application.</param> /// <param name="temperatureLoad">The temperature load.</param> /// <param name="replace">True: All previous loads, if any, assigned to the specified object(s), in the specified load pattern, are deleted before making the new assignment.</param> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> protected void setLoadTemperature(ILoadTemperature app, LoadTemperature temperatureLoad, bool replace) { app.SetLoadTemperature(Name, temperatureLoad.LoadPattern, temperatureLoad.TemperatureLoadType, temperatureLoad.Value, temperatureLoad.JointPatternName, replace); addOrReplace(replace, temperatureLoad, _temperatureLoads); }