本帖最后由 xyp1964 于 2023-12-17 22:19 编辑
- (defun c:tt ()
- (setq ss1 (sf-ssget "\n选源" '(((0 . "TEXT"))))
- ss2 (sf-ssget "\n选目" '(((0 . "TEXT"))))
- lst1 (vl-sort (sf-ss-list ss1) '(lambda (x y)(> (cadr (sf-dxf x 10)) (cadr (sf-dxf y 10)))))
- lst2 (vl-sort (sf-ss-list ss2)'(lambda (x y)(> (cadr (sf-dxf x 10)) (cadr (sf-dxf y 10)))))
- )
- (mapcar '(lambda (x y) (grvecs (list 1 (sf-dxf x 10) (sf-dxf y 10))))lst1 lst2)
- (mapcar '(lambda (a b) (sf-PutDxf b 1 (sf-dxf a 1)))lst1 lst2)
- (princ)
- )
|