@s.spijkerman,
Please refer to: How to get help on the Dynamo forums for information on how to properly post code on this blog.
Cheers!