Sort lines with the same x and y coordinates

Hi everyone, I have a list made up of lines and I would like to group the lines with the same x and y coordinates.
How can I do it? Maybe with some python scripting?

Have you tried List.GroupByKey?

https://dictionary.dynamobim.com/#/Core/List/Action/GroupByKey

2 Likes