Consider Cases 1 and 2. In Case 1, the tubes were drawn in the order represented by the numbers in red. That is, if I select all by All Elements by Category the tubes will listed in the same order as the numbers, because Revit lists the elements in the order in which they are drawn.
In Case 2, for some reason, some pipes needed to be deleted and redrawn, in the order shown. Therefore, they will be in the order presented if I use All Elements by Category.
Is there any way to reorder the Case 2 tubes so that they are in the order of Case 1?
Objective and create a list with the values contained in the parameter of the families "Pipe section = 129, 1, 159,107,84 … these values are in a list going downstream like the fluid.
@Tiago Yes, I did understand your question.
But somehow Dynamo is not able to get everything in correct order.
If I try to sort the list based on connections, this is what I get:
107
159
129
84
137
1
(you see 1 should have been after 129 but Dynamo is not able to identify that)
And that is something I couldn’t solve
You can use the node “Pipe Upstream Components” from MEPover Package to get the sections in the flow order and then renumber them in a new parameter (a shared parameter, so you can tag the value)