Sort SS based on creation order

Discussion in 'AutoCAD' started by Don Butler, Jul 6, 2004.

  1. No, they're never reused.
    Practically yes. But, technically it is an
    assmption that you shouldn't make.

    AFAIK, the "X" form of (ssget) should return entities
    in creation or reverse-creation order.
     
    Tony Tanzillo, Jul 7, 2004
    #21
  2. If the only need is to sort by handle 'value', then
    padding the string with 0's or spaces should address
    that need without as much work:

    (defun HandleString (handle)
    (strcat
    (substr "000000000000000000000000000000"
    1 (- 16 (strlen handle))
    )
    handle
    )
    )
     
    Tony Tanzillo, Jul 7, 2004
    #22
  3. Don Butler

    Don Butler Guest

    Interesting...

    Thanks

    Don

     
    Don Butler, Jul 7, 2004
    #23
  4. Don Butler

    Don Butler Guest

    That's what some other guys were saying (ssget "x"). It flew over my head as
    to what they were meaning.

    Thanks again,

    Don
     
    Don Butler, Jul 7, 2004
    #24
  5. Don Butler

    Don Butler Guest

    No problema

    Don
     
    Don Butler, Jul 7, 2004
    #25
  6. Don Butler

    Doug Broad Guest

    Nice Tony! Much simpler than converting.
     
    Doug Broad, Jul 7, 2004
    #26
  7. Don Butler

    Viliam Guest

    Tony,

    thanks for the explanation.
    I just tested few things with SLICE, UNION, and even BREAK, and I will
    repeat same thing as I said in my previous post:
    The value of handle does not represent the sequence of creation. I can
    make a new entity with same handle as one of the old entities was.
    As for the repeat, it looks like I am wrong there is the inheritance of
    entity handle for one unit only.

    And YES I would appreciate any comment, explanation I can get, including
    punches. ;-)

    Viliam
     
    Viliam, Jul 7, 2004
    #27
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.