Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Currently while the OpenStudio API support many languages, including C#, measures are specifically written in Ruby. Work is being done to also support Python for formal measures. Because measures can be run with the OpenStudio CLI to run a workflow of 1 or more measures, you can run measures from any language that supports system calls. The point of me mentioning this, is that there are very few Ruby methods used in a measure. Your framework can be C# and using the CLI and you can still make use of measures. If need to do your model manipulation in C# then you can still do that, but just with loose scripts instead of formal measures.

Currently while the OpenStudio API support many languages, including C#, measures are specifically written in Ruby. Work Ruby, however work is being done to also support Python for formal measures. Because measures can be run with the OpenStudio CLI to run a workflow of 1 or more measures, you can run measures from any language that supports system calls. The point of me mentioning this, is that there are very few Ruby methods used in a measure. Your framework can be C# and using the CLI and you can still make use of measures. If need to do your model manipulation in C# then you can still do that, but just with loose scripts instead of formal measures.