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

Revision history [back]

This answer is similar to @Kyle Benne

This is unverified C# code, but the following code is closer to the c++ code snippet in the question.

node = model.toNode(airLoop.zoneSplitter().lastOutletModelObject().get()).get()

That paradigm I know works for the Python bindings, which do not have the helper functionality of the Ruby bindings.

If you want to add a terminal and ThermalZone at the same time, use Kyle's advice on addBranchForZone.

This answer is similar to @Kyle Benne

This is unverified C# code, but the following code is closer close to the c++ code snippet in the question.

node = model.toNode(airLoop.zoneSplitter().lastOutletModelObject().get()).get()

That paradigm I know works for the Python bindings, which do not have the helper functionality of the Ruby bindings.

If you want to add a terminal and ThermalZone at the same time, use Kyle's @Kyle Benne advice on addBranchForZone.