发布于:2010-05-31 13:43:31
来自:建筑设计/CAD下载及教程
[复制转发]
;;;
;;;将所选的二维多义线、圆弧、直线尽可能连接为二维多段线.
;;;
(defun c:jointtopl (/ kst sset i pp d1 yn f1)
(setvar "cmdecho" 0)
(princ "\n选择欲连接的所有二维多义线、圆弧、直线:")(setq sset (ssget '((-4 . "
"))) i 0)
(while (< i (sslength sset))
(if (entget (setq ent (ssname sset i)))
(if (= (cdr (assoc 0 (entget ent))) "LWPOLYLINE") (vl-cmdf "_PEDIT" ent "J" ent "" "") (vl-cmdf "_PEDIT" ent "Y" "J" sset "" ""))
)
(setq i (1+ i))
)
(princ)
)
全部回复(4 )
只看楼主 我来说两句回复 举报
谢谢楼主了
回复 举报