[分享]将选取的多线、直线、圆孤连接成一条多段线
<p>;;;将选取的多线、直线、圆孤连接成一条多段线</p><p>;;;用法:(XL-L2PLX SS)</p><p>;;;参数:SS 选择集<br/>(defun xl-l2plx (s2 / n e edxflist )<br/> (setq n (sslength s2))<br/> (repeat n<br/> (if (setq e (ssname s2 0))<br/> (progn<br/> (if (cdr (assoc 0 (entget e)))<br/> (progn<br/> (if (wcmatch (cdr (assoc 0 (entget e))) "*POLYLINE")<br/> (command ".pedit" e "j" s2 "" "")<br/> (command ".pedit" e "y" "j" s2 "" "")<br/> ) ) ) <br/> (setq edxflist (entget e))<br/> (if (= (cdr (assoc 70 edxflist)) 1)<br/> (progn<br/> (ssdel e s0)<br/> (setq n (1- n))<br/> ) <br/> ) <br/> ) ) <br/> (ssdel e s2)<br/> ) <br/> (princ)<br/>)</p> 很好!另外请问如何合并成一条直线? 你好,断开的能连接吗?是不是要首尾相连才可以? 命令是什么呢? 怎么用这个啊?? 只发了个子程序噶命令? 谢谢楼主代码分享! 学习学习学习一下!
页:
[1]