I have been using a workaround with EPPY to integrate or modify the building energy model generated from HB tools. Recently, I have been working on a research topic that needs integration of a few objects and fields that cant be performed with the available HB components. Integrating outside in IDF is not allowing me to bring back the model into Rhino-GH through the load model component. Yes, I have made sure that the E+ version remains 22.1, yet, it didn’t work.
So, I want to use the HB Energy SDK to create the component that can allow me to append custom objects and fields. This can help me to use the HB annual load component for quick simulation results.
Can you please give me an example of syntax I need to use for creating the custom component? I am versed with E+ IDD based objects and fields indexing but not with OpenStudio CLI.
Hi @Naga, you need to be more specific about what you’re trying to do. Can you provide an example of one of the parameter that you’re trying to change? Maybe share a code sample that shows how you’re using eppy to make those changes.
I found a solution with OpenStudio, but when trying to assess the OpenStudio from HB (ladybug_rhino.openstudio module — ladybug-rhino documentation), the ladybug_rhino.openstudio is throwing error - “C:\openstudio-3.5.0\lib\openstudiolib.dll bot found”.
Hi @Naga, You should share a sample code with us to be able to help you.
If I have to guess, either the DLL file is not copied at the correct address or it is blocked.
I suggest you use the Pollination Grasshopper installer to install all the modules and dependencies and use the Python that comes with the Ladybug Tools installation.
I am happy to inform you that I could complete the task (just now, ) using the writer module in the Honeybee_energy class.
The writer class was very helpful, and I thank you for developing such a resourceful SDK.
It would be wonderful if we could have an index system for the LB Tools SDK similar to the E+ documentation, which can help us explore the potential modules.
@mostapha, I have visited the page multiple times. It’s an amazing resource but it will be more helpful if we can recluster the modules based on applications - model, append, edit, translate and so on.
I might recommend making use of the add_str_ input to the various energy simulation components if you have not already. That input allows you to append whatever extra IDF text to the model exported by the component and I know of some researchers who have added a whole AFN before that way. Of course, if you know Python, you can also just append the text in Python after using the writer methods. Oo you could use the OpenStudio SDK to edit the honeybee-exported OSM, adding in whatever AFN you want.