Assigning Elements to Workset

Hey I’m new to Dynamo and im trying to run this script to assign elements to their worksets but im coming across a warning using Element.SetParameterByName ![Warning-Element.SetParameterByName operation failed and I don’t know why?

The List.Flatten is creating “null” even though i am inputting data?

Can someone assist me please, many thanks.


Hi @richard.stewart,
Welcome to the Dynamo community.
It seems like your flatten node is missing an input.
Use the Flatten node instead of List.Flatten node.
Or provide the amt input in the List.Flatten node.

Thank you so much - great advice, it works!

1 Like