Iterate Cartesian Product with a list of Combinations

developers
python

#1

Hey All,

I have a weird one for you all. I will continue searching this site but I am pretty much stuck. I can’t seem to get dynamo to iterate through each index and collect them all at the end. If I try to plug in the entire combination list it does the product incorrectly… Check it out! New WEAVE.dyn (9.5 KB)

my desired results are
|A1|B1|C1|
|A2|B2|C2|
|A3|B3|C3|
|A1|B1|D1|
|A2|B2|D2|
|A3|B3|D3|
|A1|C1|D1|
|A2|C2|D2|
|A3|C3|D3|
|B1|C1|D1|
|B2|C2|D2|
|B3|C3|D3|


#2

What are you starting with? Can you post a screen capture too its helpful for those who cannot open you file at the moment.


#3

New WEAVE-1.dyn (6.5 KB)


#4

You just need a List.Transpose

I also used addition instead of List insert. Its a bit easier.