 - ;; 从上到下从左到右排序;; 需要e派工具箱(XCAD)的支持:[url]http://yunpan.cn/QXQKsW9gAPmpF[/url] 访问密码 2ffa
- (defun c:tt ()
- (xyp-CMDLASC0)
- (if (setq ss (ssget '((0 . "LWPOLYLINE") (90 . 4) (70 . 1))))
- (progn
- (setq lst (xyp-Sort-Plist (xyp-Sort ss 10 "Y-max") 1)
- lst (mapcar 'cdr lst)
- i 0
- )
- (foreach s1 lst
- (xyp-Text 5 (xyp-9pt s1 5) (itoa (setq i (1+ i))))
- (setq i (1+ i))
- )
- )
- )
- (xyp-CMDLA1)
- )
|