private bool Create(BHE.Results.SimulationResult buildingResult) { TSD.BuildingData tsdBuildingData = tsdDocument.SimulationData.GetBuildingData(); TSD.CoolingDesignData tsdCoolingDesignData = tsdDocument.SimulationData.GetCoolingDesignData(0); TSD.HeatingDesignData tsdHeatingDesignData = tsdDocument.SimulationData.GetHeatingDesignData(0); tsdBuildingData.GetHourlyBuildingResult(1, (short)tsdBuildingArray.externalTemperature); return(true); }
public List <IBHoMObject> ReadSpaceHeatingResults() { List <IBHoMObject> spaceResults = new List <IBHoMObject>(); int heatingIndex = 0; TSD.HeatingDesignData heatData = null; TSD.ZoneData zoneData = null; while ((heatData = tsdDocument.SimulationData.GetHeatingDesignData(heatingIndex)) != null) { int zoneIndex = 1; while ((zoneData = heatData.GetZoneData(zoneIndex)) != null) { spaceResults.Add(BH.Engine.Adapters.TAS.Convert.FromTAS(zoneData, ProfileResultUnits, ProfileResultType, Hour, Day)); zoneIndex++; } heatingIndex++; } return(spaceResults); }