Sorting an object List by "y" coordinate

Discussion in 'AutoCAD' started by bob, Aug 24, 2003.

  1. bob

    bob Guest

    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, Aug 24, 2003
    #1
  2. bob

    Joe Burke Guest

    Bob,

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

    Joe Burke
     
    Joe Burke, Aug 24, 2003
    #2
  3. Tony Tanzillo, Aug 25, 2003
    #3
  4. bob

    Rudy Tovar Guest

    Example point list

    (vl-sort point_list
    (function (lambda (e1 e2)
    (< (cadr e1) (cadr e2))
    )
    )
    )
     
    Rudy Tovar, Aug 25, 2003
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.