Hi there,
I am trying to sort my elements in the following order. I have tried it but I am getting in bottom to top and left to right,
But I want the sorted list to be like: Left to right (from top to bottom). Can anyone please tell me where I am missing ?
dynamo forum column numbering.dyn (50.1 KB)
Daan
February 1, 2022, 11:29am
2
Hi @shashank.baganeACM ,
See these topics, please search a bit before posting a topic
I added a list flatten to the second point node and i got the script almost working i guess…
The problem now is that the columns get named from bottom to top instead from top to bottom…
[structural columns order is upside down]
[image]
There seems to be more going on than just inverse numbering. I added a few columns and made the name a number instead of a letter
[image]
Hi,
I’m trying to sort a list of families by location. First sort by z then group, then sort those groups by y then by x.
I’ve gotten as far as sorting and grouping by z, then sorting the groups by y. I’m not sure how to continue and sort them by x without losing the y sort I already did. One way would be grouping them again by Y, but I tried that and ended up in sub-list hell. Any suggestions?
Oh, and I also found a sort points by XY node (as seen in the screenshot), but I’m not sure how I c…
3 Likes
Hi @Daan those are not working for me to get the required answer.
I want from top to bottom and left to right condition.
Please post your DYN and any error messages you are getting. Also, which version of Dynamo and Revit you are using.
Daan
February 1, 2022, 3:22pm
5
Hi @shashank.baganeACM
Could you explain in further detail why this solution doesnt work?
1 Like
Hi @Tom_Kunsman Its already uploaded with the topic.
Hi @Daan I am facing the issue like the columns are renumbered in a random sequence.
It is not as required.
Here I am attaching the revit file. Please let me know why I am not the getting the required answer’
Column numbering.rvt (2.4 MB)
sed07
February 2, 2022, 10:56am
8
The issue in your case is that there are small differences in the point locations that prevent them from being grouped into neat rows by X or Y coordinates.
I modified the file above from Vikram to account for this using a different approach. It should work for your situation.
family instances sort YX.dyn (50.9 KB)
2 Likes
Thanks @sed07 . It works fine for me