There are a couple AFN examples in the OpenStudio-resources repo in both ruby and python. For example, here’s one in ruby using the AirflowNetworkZone object.