Hello All, first time post and new to Dynamo. I have been stuck on this for a while now.
I have two lists (One with a 0-31 range, the other a 0-25 range), I want to combine them into one list that returns an index 0-25 for each instance of 0-31.
I am using List.CartesianProduct which is giving the correct list layout, but all the values are returning as “null” instead of the “10” that should be returned.
In case you just want to “cut” your 0-31 items list you can use List.TakeItemsnode which will take the first N list elements of the desired list. I used Count node to feed the inputs. You can skip the List.Create node in case you don’t want to keep together both lists.
In my project, I have 32 instances of a mosaic family (the shown flattened list already has the indexes and values ordered correctly), the family being made of 26 total panels (which is why I used the code block range 0-25, as it will always be 0-25). I am trying to make a list which will eventually be exported to an excel spreadsheet with some other information, so I need the hierarchy to look a certain way.
The mosaic family has an instance parameter which determines the width of each instance of the mosaic family and all 26 panels in it. The list I need has to have 32 lists (0-31 representing each instance of the family), each having 26 indexes (0-25 representing each panel), each of the 26 indexes having the value of the width.
A more simple example would be if I had 5 instances of the family with 4 panels per family, and the width instance parameter of the families are:
Family Instance 1 = 8’
Family Instance 2 = 9’
Family Instance 3 = 12’
Family Instance 4 = 6’
Family Instance 5 = 8’
The list would look something like:
List
→0 List
—–→(0)8’
—–→(1)8’
—–→(2)8’
—–→(3)8’
→1 List
—–→(0)9’
—–→(1)9’
—–→(2)9’
—–→(3)9’
→2 List
—–→(0)12’
—–→(1)12’
—–→(2)12’
—–→(3)12’
→3 List
—–→(0)6’
—–→(1)6’
—–→(2)6’
—–→(3)6’
→4 List
—–→(0)8’
—–→(1)8’
—–→(2)8’
—–→(3)8’
Thank you for your help, I really appreciate the assistance
You have a Parent Family (P) with a Nested Family (N). N has allways the same Paramater value (assuming it is just one Parameter) for each P.
Why not export P only?
You can have a Parameter in P for the value for N?
You could also ‘link’ the Parameters.
NOTE There is a node to get all the nested Families from a Family. Then it doesn’t matter how many Panels you have (with that nested Family). 1, 2 or 31.
Hola amigos buenas!! @phillicheese the way i see your request you need to sort or grouping your instances familys (36 instances) by the values of one of their parameters (26 posible values), so you also say that you will use excel to work 1 easy way to do it is to export your list to excel create the table and sort the list by the specific column that you desire, the rest of the table will follow, any way if you want to perform this in dynamo is to ask the unique items in your flaten list and then ask for all indices of unique values, then you use the index list to grouping, you can also use this index list to get other values, i let you an example, hope this helps you!