I was wondering if it would be possible to distinct data tree’s together. For example, there are 3 data tree’s that are combined with entwine, but i want to distinct branches that are the same and make a new list/data tree out of it. Is there a way to do this? I have tried to code it myself, but i get a error everytime i try to use the Distinct() method.
I would say 6-7, but im used to program code in visual studio. In the C# component of grasshopper it works a little different i have seen. The component keeps making loops and i cant really use other extensions. Normally I only need to use using LINQ but that doesn’t work in the component even if I imported the DLL.
What i had in mind was making a new class, calling it for example : DataTreeInfo that can take up to 3 strings as info in it.
Then use the class to add the info from the branch in a list of the class DataTreeInfo. Then i wanted to distinct that list.
What means this? I hardly can imagine having any issue with C# (and no VS - the from/to part breaks my nerves) .
Anyway I’m in some sort of extended wave windsurfing vacation but if there’s no wind I’ll prepare a suitable demo (DistinctBy/LINQ and the likes) for the occasion.
Enjoy your vacation! No need to make haste for the demo. Really appreciate the effort and i rather have you enjoy your vacation than trying to solve my problem here.
Well … there’s wind. Plus this w/e is MotoGP w/e … meaning that all activities (bar windsurfing) are on halt. Race preparations are under way (with regard Fabio - I hate him).