应该增加一下原有点删除掉。 本帖最后由 rocking2008 于 2024-3-20 08:43 编辑
(defun c:tt2 (/ i ss s1 ptn)
(and(setq i 0 ss(ssget '((0 . "POINT"))))
(while(setq s1(ssname ss i))
(setq i(1+ i)
ptn(cons(cdr(assoc 10 (entget s1)))ptn))
)
(entmakex(vl-list*'(0 . "lwpolyline")'(100 . "AcDbEntity")'(100 . "AcDbPolyline")(cons 90(length ptn))
(mapcar(function(lambda(x)(cons 10 x)))
(vl-sort ptn(function(lambda (a b) (< (car a) (car b))))))))
)
(command "_erase" ss "");删除原有点点
)
页:
1
[2]