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

Revision history [back]

Try this:

  measure.run(model, runner, argument_map)
  result = runner.result

  puts "**MEASURE APPLICABILITY**"
  applicability = result.value.value
  if applicability ==  -1
    puts "#{applicability} = Not Applicable"
  elsif applicability == 0 
    puts "#{applicability} = Success"
  elsif applicability == 1 
    puts "#{applicability} = Fail"
  end

Here is the API documentation for the Runner

Here is the API documentation for the Runner Result

There are more examples of getting stuff (info, warning, error, initial/final condition) in this file.