I have created a workflow that allows me to sort and number all selected structural foundations based on their x and y point.
This works great for buildings without diagonal floors in a floor plan, see the screenshot below as clarification…
The structural foundations in the top part of this building will be numbered incorrectly since my workflow just sorts the elements based on their X and Y point.
Would it be possible to draw a line paralel to these foundations and sort them accordingly?
Since English isnt my first language i am having trouble explaining what is going on, to clarify see below what happens if i run the workflow:
In green the desired numbering and in red the numbering how dynamo numbers the foundations at the moment.
A list reverse wouldnt work here because the next row of columns need to be renamed accordingly.
In short: I want to sort elements not by revit coordinates from base point but from an line allignment…
I hope this is clear enough…