OpenStudio SDK - using GbXML reverse Translator
I have managed to make an optional model by using the gbxml reverse translator using the code below:
require 'openstudio'
translator = OpenStudio::GbXML::GbXMLReverseTranslator.new
newModel = translator.loadModel(OpenStudio::Path.new('C:\Users\szilasia\Documents\dscEngine\gbxml3.xml'))
Unfortunately the model is not initalized so I can't convert it to a model as seen here
How can I initalize the model?
@antonszilasi feel free to update the question with your answer from Slack.