First time here? Check out the Help page!
1 | initial version |
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.