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

Revision history [back]

You can cast in Python but the syntax is slightly different compared to C++ and Ruby/C# bindings.

from openstudio import model
# model namespace (OpenStudio::Model::toNode), not an instance of model
fan_inlet_node = model.toNode( fan.inletModelObject().get() ).get() 
# have to use .get() since both functions return optionals

There are no convenience methods yet for Python to do fan.inletModelObject().toNode() or anything like that.