First time here? Check out the Help page!
1 | initial version |
An easier way would be to create an OpenStudio measure with the following in the run
method:
model.getOutputTableSummaryReports.addSummaryReport("ZoneComponentLoadSummary")
Your EnergyPlus model is adding a new instance of the Output:Table:SummaryReports object (with workspace.addObject
) which EnergyPlus doens't like because there should only be one.
With your EnergyPlus measure, you would do this by getting the object and changing it with:
obj = workspace.getObjectsByType("Output:Table:SummaryReports".to_IddObjectType")[0]
obj.setString(0,"ZoneComponentLoadSummary")
2 | No.2 Revision |
An easier way would be to create an OpenStudio measure with the following in the run
method:
model.getOutputTableSummaryReports.addSummaryReport("ZoneComponentLoadSummary")
Your EnergyPlus model is adding a new instance of the Output:Table:SummaryReports object (with workspace.addObject
) which EnergyPlus doens't like because there should only be one.
With your EnergyPlus measure, you would do this by getting the object and changing it with:
obj = workspace.getObjectsByType("Output:Table:SummaryReports".to_IddObjectType")[0]
workspace.getObjectsByType("Output:Table:SummaryReports".to_IddObjectType)[0]
obj.setString(0,"ZoneComponentLoadSummary")