Measure writing: import dependent Objects
Since I was unable to produce the HVAC system in OpenStudio, I'm writing a measure to import my system from an .idf file.
Problem is, when loading an object, or adding it to a workspace, all fields checked if referencing objects exist. References to objects that have not been inserted yet, are therefore deleted. Before I tried fixing this by adjusting the order of my .idf file. However, this does not work when two objects reference each other. Every broken connection would have to be fixed manually in Ruby by finding the offending object and resetting its reference. In my case this would be 100s lines of code.
I've tried looking into the workspace.insertObjects function to see if that would not have this issue, but couldn't get it to work.
Is there another way of disabling this error checking, or inserting multiple objects at the same time into a workspace?