Create Ducts from CAD

Browsing some posts for “Ducts from CAD”
Trying to solve this thing


Im getting this error:

Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 29, in
AttributeError: ‘list’ object has no attribute ‘ToXyz’

But If i tried from one startpoint and one endpoint it works:

Any help is appreciable :slightly_smiling_face::slightly_smiling_face: