Good Evening All,
Without having access to Revit/Dynamo at the moment i’ll try and ask my question with Microsoft excel as an aid…
See table below.
This is a summary of what i’m aiming for.
Within dynamo i have a list of elements that i have ordered already, this is represented by the first column in the table above.
Column 2 indicates whether or not the elements in column 1 are nested within a seperate family.
If not then the cell is blank. If so then the cell contains a reference to the parent family name.
As shown in the third column. I’m trying to re-order the original list by using the following workflow.
Starting with the first element as per the ordered list in column 1…
Step 1: Has the element already been given a new sequence reference?
If yes: Skip
If no: Move to Step 2
Step 2: Is the element nested in another family?
If yes: Add this element to the new sequence and carry on the sequence will all other elements of that parent family (Family A, Family B etc) until all elements in that parent family have been sequenced, then move to the next element in the original list.
If no: Add this element to the new sequence, then move to the next element in the original list.
Rinse and repeat.
The workflow is fairly hard to put into words so as soon as i have access to revit / dynamo i shall provide a screenshot of my actual dynamo workflow.
Many thanks for any help in the mean time.