线变多义线,有以前的源码
(DEFUN C:ff ()(AND (SETVAR "PEDITACCEPT" 1 )
(setqSS (ENTSEL "\n点取对象: " ))
(command "_.pedit" ) (command SS ) (command "j" ) (command (SSGET "x" ) ) (command "" ) (command "" ) )
(PRINC "\n线变多义线完成..." )
(PRINC ))请问前辈,我想 选中一段线,自动选中其余的线,合并成 一个多义线,怎么运行不起来?
(defun c:tt ()
(setvar "peditaccept" 1)
(if (setq s1 (car (entsel "\n点取对象: ")))
(command "_.pedit" s1 "j" (ssget "x") "" "")
)
(princ "\n线变多义线完成...")
(princ)
) 真是高手,我苦恼了好几天,你一下子就搞定了,谢谢前辈 xyp1964 发表于 2023-8-11 22:48
(defun c:tt ()
(setvar "peditaccept" 1)
(if (setq s1 (car (entsel "\n点取对象: ")))
牛,短小精悍 xyp1964 发表于 2023-8-11 22:48
(defun c:tt ()
(setvar "peditaccept" 1)
(if (setq s1 (car (entsel "\n点取对象: ")))
牛!!这个真的好用。 本帖最后由 wsj249201 于 2023-8-12 15:08 编辑
为哈命令行会出现:绾垮彉澶氫箟绾垮畬鎴?..这样的乱码呢?
哦哦,知道了
记事本另存--选择ANSI编码
路过~学习~ 自动选成一条链是吗,那就向前搜索向后搜索再加上本身就可以啦 xyp1964 发表于 2023-8-11 22:48
(defun c:tt ()
(setvar "peditaccept" 1)
(if (setq s1 (car (entsel "\n点取对象: ")))
学习了~非常实用的功能~
页:
[1]