how to shorting......

Discussion in 'AutoCAD' started by caduser, Jul 4, 2003.

  1. caduser

    caduser Guest

    how to shorting...
     
    caduser, Jul 4, 2003
    #1
  2. Dou you mean sorting?
    Later
    Kirk
     
    W. Kirk Crawford, Jul 4, 2003
    #2
  3. Now if sorting is what you mean then the following might help.
    Tony does have great answers.

    In AutoCAD 2000:

    (defun numsort (numlist)
    (mapcar 'itoa
    (vl-sort
    (mapcar 'atoi numlist)
    '<
    )
    )
    )
    --
    Check out DWGInfoTip at http://www.caddzone.com/dwginfo.htm
    /*********************************************************/
    /* Tony Tanzillo Design Automation Consulting */
    /* Programming & Customization for AutoCAD & Compatibles */
    /* ----------------------------------------------------- */
    /* */
    /* http://www.caddzone.com */
    /*********************************************************/
     
    W. Kirk Crawford, Jul 4, 2003
    #3
  4. caduser

    Adesu Guest

    like this may be

    _$ (setq srt (list "A3" "A11" "A5" "A1"))
    ("A3" "A11" "A5" "A1")
    _$ (vl-sort srt '<)
    ("A1" "A11" "A3" "A5")
    _$
     
    Adesu, Mar 3, 2005
    #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.