Can we generate duct fittings using dynamo script?

Hello Forum,
Can we generate Duct Fittings (Elbows, transitions, branch shoe , T-joints etc) using Dynamo Script.

By running the script we should able to generate the fittings where ever it is possible based on the system.

I’m attaching the image with few ducts. So that you can understand what i am willing to do.

Need your help.

Thank you in Advance.

Regards,