Hey guys,
I have a question regarding the MultiReturn attribute. I use it to rename the output of a ZT node, but apparently, when nothing is connected on the ‘DynamoPointList’ input, i get this error:
Warning: Dictionary.ValueAtKey expects argument type(s) (Dictionary, string), but was called with (Function, string).
The node works fine when Dynamo points are input.
My code looks like this:
[MultiReturn(new[] { "ModelData" })]
public static Dictionary<string, List<object>> Node(IEnumerable<Autodesk.DesignScript.Geometry.Point> DynamoPointList, string Support = "YYYYYY")
{
//stuff happening here
return new Dictionary<string, List<object>>
{
{ "ModelData", Arcadis_Nodes_object }
};
}
Does anyone have an idea how to solve this?
Or is there another/better way to rename output?
Thanks!