Hi Daniel! Thanks for the reply!
The goal is to always flatten all outgoing data, because I have no need for those list structures. Even worse: because I use an external API I would that called multiple times, which leads to undesirable behavior (more time consumed, improper functionality, etc.).
What seems to happen (correct me if I’m wrong) is that for each nested list, my code runs the full method:
//Nested list enters here:
public static List<object> TestNode(List<Autodesk.DesignScript.Geometry.Point> DynamoPointList)
//do some code
List<object> Return_objects = new List<object>();
//Now only the nested list is returned and the method is started over again
So I get this behavior if I do not flatten the list manually (either before or after the ‘Elements.Node’ Dynamonode: