First time here? Check out the Help page!
1 | initial version |
If it is a very simple use case, you can start with a blank IDF, but if it is more complex I you can start with an IDF exported from OpenStudio, or produced by a simulation run. Open that IDF fie in a text editor or IDF editor and add in new objects. While new objects can refer to objets made by OpenStudio generated IDF file, you can't change fields on OpenStudio generated IDF objects to refer to the newly made objets. Once done adding new objects, optionally run the IDF through EP launch to confirm it runs, and then copy only the new objects to a clean IDF file. You don't wan to have anything in the file that OpenStudio generated. Now you can continue to work.
Once the Inject IDF measure with the clean IDF file (only new objects) is in the workflow you can continue to work on the OSM file and this measure will re-inject the new objects at run time. In your case since you need to interact with objects from the OpenStudio generated IDF a custom measure would be better. I would refer you back to the answer to this post that you referred to.