Adding objects, fields in OpenStudio IDD using OpenStudio SDK
Hi All,
I want to programmatically add custom objects and fields in the OpenStudio IDD using the OpenStudio SDK (C# bindings). Is it possible?
Upon surfing the internet, it appears that in OpenStudio's C# API, we cannot modify the OpenStudio IddFile or its contained IddObjects directly (such as adding a new field to OS: Building) because OpenStudio's IddFile structure is considered read-only once loaded from disk.
However, when I edit the IDD file directly (through a text editor), I can read/retrieve the custom added objects and fields. This could be an alternative option!
Any advice on this would be greatly appreciated.
I'm curious what you want to achieve here?
We are working on a DOE project that requires adding new compliance parameters (fields) to the existing openStudio objects. For this, we modified the OpenStudio IDD file (through a text editor). This method works fine. Meanwhile, I am exploring the option of whether this can be done programmatically using the OpenStudio SDK. Thanks