Line to duct

i was trying to make dynamo to convert lines to duct. its working perfectly for first time. if i change the duct size to create a new duct, size of previously created duct will also change. dynamo attached.create duct by create method_3.dyn (19.0 KB)

I’m actually also working on a set of codes which generates ducts from lines. Out of curiosity, how do you use your code?