I would like to make a lisp that orders me the selected objects, in various ways:
I'll give an example with numbers, but they could be polylines or any other object.
1 2 3
4 5 6
7 8 9
I would like to be able to select them with "Windows" and give them e.g. the Left-Right and top-down mode (as you read a text):
1 2 3 4 5 6 7 8 9
but also other ways e.g. from bottom to top and from right to left:
9 6 3 8 5 2 7 4 1
or from top to bottom and from left to right:
1 4 7 2 5 8 3 6 9
I Attached the lisp that I did and that runs only from left to right and from top to bottom...
but I think you can find solutions faster than mine!
My lisp is not complete: LISTA1 output contains the coordinates of the element + the selection set... a I just have to do SSADD to complete the command and create selection set final.
SelSort.lsp
ORDINE.lsp