Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

AllSummaryAndSizingPeriod Measure

I am trying to create a measure that allows me to get the AllSummaryAndSizingPeriod report instead of the AllSummary report.

The measure ran with out errors but I can not get the report.

class AddAllSummaryAndSizingPeriod < OpenStudio::Measure::ModelMeasure
  def name
    return "Agregar AllSummaryAndSizingPeriod"
  end

  def arguments(model)
    args = OpenStudio::Measure::OSArgumentVector.new
    return args
  end

  def run(model, runner, user_arguments)
    super(model, runner, user_arguments)
    model = runner.lastOpenStudioModel
    if model.empty?
      runner.registerError("No model found.")
      return false
    end
    model = model.get
    output_table = OpenStudio::IdfObject.load("Output:Table:SummaryReports,AllSummaryAndSizingPeriod;").get
    model.addObject(output_table)
    return true
  end
end

AllSummaryAndSizingPeriod Measure

I am trying to create a measure that allows me to get the AllSummaryAndSizingPeriod report instead of the AllSummary report.

The measure ran with out errors but I can not get the report.

class AddAllSummaryAndSizingPeriod < OpenStudio::Measure::ModelMeasure
  def name
    return "Agregar AllSummaryAndSizingPeriod"
  end

  def arguments(model)
    args = OpenStudio::Measure::OSArgumentVector.new
    return args
  end

  def run(model, runner, user_arguments)
    super(model, runner, user_arguments)
    model = runner.lastOpenStudioModel
    if model.empty?
      runner.registerError("No model found.")
      return false
    end
    model = model.get
    output_table = OpenStudio::IdfObject.load("Output:Table:SummaryReports,AllSummaryAndSizingPeriod;").get
    model.addObject(output_table)
    return true
  end
end