How can i make data structure like
0 List
0 Material 01 ID
1 List
0 Empty List
2 List
0 Material 02 ID
3 List
0 Material 04 Id
How can i make data structure like
0 List
0 Material 01 ID
1 List
0 Empty List
2 List
0 Material 02 ID
3 List
0 Material 04 Id
@Chan What are you trying to achieve? post your files dyn and Revit (if needed)
@salvatoredragotta thank you for replying
I would like to make a higher tier on the empty list. This is because the empty value disappears when I use Flatten to match the data structure. So what I would like to do is select the empty values from the list and make a higher tier like below image
It really helpful!. @salvatoredragotta
but is there a way to keep “Empty List” instead of “” ??
use this code instead; no need of the List.Flatten node
OUT=[]
for lst in IN[0]:
if lst:
for sublst in lst:
OUT.append(sublst)
else:
OUT.append([])
salvatoredragotta
It works well thank you !!!