Sorting an object List by "y" coordinate

Bob

Usenet Archive
Joined
Feb 1, 2000
Messages
129
Reaction score
0
If use ssget and select the objects (text) by window, how can i sort the list via the "y" coordinate? I'm having this problem with a lisp and the only way around it is to select the objects in order. Selecting by window will not give me constant results.

Bob
 
Bob,

Take a look at the thread titled "Assign names to a block based on X coordinate" dated 8/13/2003.

Joe Burke
 
Example point list

(vl-sort point_list
(function (lambda (e1 e2)
(< (cadr e1) (cadr e2))
)
)
)
 

Latest threads

Back
Top