Duct from polylines/Pts

That too is in the feature request queue. I can see what’s available in the api for connections here in a few weeks (about to leave town). Have you looked at the pyrevit mep extensions? Pyrevit is a great way to learn the Revit API.