Andreas, thank you so much.
I had to modify the Python script to accept multiple inputs but apart from that it works perfectly.
See Modifying a Python Script to process list of objects - Developers - Dynamo (dynamobim.com) for the full solution.
1 Like