Input a dictionary from dynamo (DesignScript.Builtin.Dictionary) to a custom ZeroTouch node

I solve that using this methodology.

  1. Your Node Input must be an IDictionary.

  2. Then, inside in your Node logic you need to convert the IDictionary to a strong typed Dictionary.

This allows you to consume your input data as you wish.

See images below showing how I implement that.

Node Method

Generic extension method to convert IDictionary to the strong typed Dictionary

Dynamo Graph

1 Like