Revision history [back]
My first thought is that the measure isn't doing version translation on the osm file in the resources folder beofre it loads it. If you are now opening it as a 1.11.1 model it could behave unexpectedly.
Here is an example of how to load a model with version translation.
# load model
translator = OpenStudio::OSVersion::VersionTranslator.new
path = OpenStudio::Path.new(File.dirname(__FILE__) + "/resources/example_model.osm")
model = translator.loadModel(path)
if not model.empty?
model = model.get
end
Is this measure on BCL, if so can you provide a link, Thanks.
My first thought is that the measure isn't doing version translation on the osm file in the resources folder beofre it loads it. If you are now opening it as a 1.11.1 model it could behave unexpectedly.
Here is an example of how to load a model with version translation.
# load model
translator = OpenStudio::OSVersion::VersionTranslator.new
path = OpenStudio::Path.new(File.dirname(__FILE__) + "/resources/example_model.osm")
model = translator.loadModel(path)
if not model.empty?
assert((not model.empty?))
model = model.get
end
Is this measure on BCL, if so can you provide a link, Thanks.