Alright, so still learning the CLI and have been successful at making my life easier on our larger models by using it to overwrite large amounts of repetitive inputs. I have, however, ran into a snag. I am modifying the AEDG GSHP measure for my purposes. Basically I want to set the outdoor air on the ZoneWatertoAirHeatPumps to 0 and then build the loop and connect the heat pumps to the condenser loop. The following script works at two out of the three tasks mentioned but I cannot get the heat pumps connected to the condenser loop. I was trying to loop through the CoilHeatingWaterToAirHeatPumpEquationFit and assign them to the condenser loop but I keep getting an error. Same with the Cooling Coil.
Here is the script for where I am trying to make a connection:
model.getCoilHeatingWaterToAirHeatPumpEquationFit.each do |heating_coil|
condenser_loop.addDemandBranchForComponent(heating_coil)
end
When I run it form the CLI I get and Exception: wrong number of arguments (0 for 1).