我不太会用这个函数,我也试过但还是不行,请大虾给我瞧瞧吧!- (defun c:test()
- (SETQ ss (ssget '((0 . "TEXT"))))
- (SETQ SSL (sslength ss))(setq n 0)
- (while (< n ssl)
- (setq e (ssname ss n))
- (append el (list e))
- (setq n (+ n 1))
- )
- (vl-sort el '(lambda (e1 e2) (< (caddr (assoc 10 (entget e1))) (caddr (assoc 10 (entget e2))))))
- )
|