First time here? Check out the Help page!
1 | initial version |
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)
assert((not model.empty?))
model = model.get
Is this measure on BCL, if so can you provide a link, Thanks.
2 | No.2 Revision |
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)
assert((not model.empty?))
if not model.empty?
model = model.get
end
Is this measure on BCL, if so can you provide a link, Thanks.