This Dynamo sample will help you to place hangers of ducts in your Revit model. I used only Python code to write this Dynamo. Specify the distance of first hanger from the edge of duct then center to center distance of hangers. If families are not loaded, a dialogue box will appear to show the folder where you you copied the hanger family. Need to select the ducts first, then run the Dynamo. You can select the rectangle and round ducts together.
Click on below link to get this Dynamo.
https://www.dropbox.com/s/nykyl2oiyss...