Flatten Array Node


#1

I am not able to get in my Library Flatten Array Node i get Flatten List. How do i get this node?

 

New Picture (2)


#2

There should be two types of Flatten node that come up: ‘Flatten’, and ‘List.Flatten’. The List variant will ask you for a number of flatten ‘levels’, the simple one will Flatten all.

i.e Look below.

Flatten and List.Flatten


#3

Thanks Sol,

But i don’t have Flatten Array. Every where i have list not only in flatten. Actually need to write room schedule to excel below is the script. what should i use instead flatten array?

 

Definition

 

 


#4

Below is the snap of flatten nodes which i have in my library may be i am missing any package?

Untitled


#5

Does your definition fail? If your definition is working then I assume they simply changed the wording to ‘list’ from ‘array’. I’m using 0.7 release at work and your using 0.8. Our IT team should be giving us 0.8 release today (So behind the times haha)


#6

Kulkul,

Please check if it fails as Sol is suggesting.

Like I said in a previous post, List and Array are very similar. If you are coming from a programming background like VB then they are very similar yet not the same and using either one would be a conscious decision - I can see why you would be asking so ferociously for Array.Flatten. I am guessing that since you are attempting to write to Excel you are assuming it will only work properly with 2D Arrays, but in Dynamo a nested list and 2d array are quite interchangeable. That holds true to a certain degree because under the hood Dynamo is operating on Arrays while visually on the outside the UX team decided to call it all Lists. I guess a list is a more user friendly name for it. I have no idea why they are calling it that. I don’t mind it though. Whatever works for everyone.

Good luck!