First time here? Check out the Help page!
1 | initial version |
Not sure about alternative measures. However, in my experience of changing any HVAC via measures, the biggest issue was "left-over" components that aren't connected to anything, but are still in the model. What I'd do is edit the measure to identify the existing components and remove them. For example, I do the following for unit heaters when I'm swapping other things in
#--------------------------------------------------------------------------------------
## Removing unit heaters/air loops from zone if they're not the selected system
if hvac_type != "Unit Heater"
# Start looking for and removing unit heaters
model.getZoneHVACUnitHeaters.each do |unitheater|
if unitheater.to_ZoneHVACComponent.get.thermalZone.get.empty?
runner.registerWarning("Your unit heater #{unitheater.name.get.to_s} is without a thermal zone")
elsif unitheater.to_ZoneHVACComponent.get.thermalZone.get == thermzon
unitheater.to_ZoneHVACUnitHeater
unitheater.supplyAirFan.remove
unitheater.heatingCoil.remove
unitheater.remove
end
end
# End removing unit heaters
*thermzon here is a thermal zone being checked in an each/do loop