Add the Dynamo code as Addin

Have a look to Nonica!