18989878581 发表于 2021-1-20 08:02:39

求教一行代码连续执行第三方插件命令


(defun c:LU()(c:yq_lineunion)(yq_formlaybycolor "P" "")(princ))
yq_lineunion和yq_formlaybycolor是源泉设计插件已经定义过的命令,这句无法执行,应该怎么写,能同时执行第三方插件的两个命令,第一个命令是手动选择对象,第二个命令是按“p”选择上一个选择集

(defun c:LU()(c:yq_lineunion)(command "OVERKILL" "P" "")(princ))
yq_lineunion是源泉设计插件已经定义过的命令,如果后面跟的是CAD自带的命令,是可以运行的。

1028695446 发表于 2021-1-21 21:54:28

(defun C:tt()
        (c:yq_lineunion)
        (sssetfirst nil (ssget "P"))
        (c:yq_formlaybycolor)
        (sssetfirst nil (ssget "P"))
        (command "OVERKILL" "")
        (princ)       
)
页: [1]
查看完整版本: 求教一行代码连续执行第三方插件命令