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

Revision history [back]

You can change the names of nodes on a branch using getobject and then changing each node:

branch = idf.getobject('Branch', 'Chilled Water Loop Supply Branch 1')
branch.Component_1_Name = 'Node 3'
branch.Component_1_Inlet_Node_Name = 'Node 1'

This won't update other nodes that also refer to that node though. I don't think we have anything built in to do that yet (though @santoshphilip may correct me).

You can change the names of nodes on a branch using getobject and then changing each node:

branch = idf.getobject('Branch', 'Chilled Water Loop Supply Branch 1')
branch.Component_1_Name = 'Node 3'
branch.Component_1_Inlet_Node_Name = 'Node 1'

This won't update other nodes that also refer to that node though. I don't think we have anything built in to do that yet (though @santoshphilip may correct me).

Thinking through the process of finding and changing all instances of a given node name, the algorithm would involve having a list of every object type that can take a node name as value for any of its fields (i.e. it has \type node in the IDD), iterating over them all checking for the presence of the given node name, and changing it if present.