cyberrog 发表于 2022-7-6 09:30:35

Ta的chprop命令出错

为Lisp论坛移动帖子:这是链接
 
我正在为talude创建一个函数。但是,在网上:
 
command "chprop" ULT "" "LT" "" "autotalude1" "")
 
它无法识别该命令。
 
谁能告诉我为什么?
 
以下是我反转属性的代码部分:
 
(setq ULT (entlast))
        (command "pedit" ult "spline" "")
        (setvar "celtype" "autotalude2")

        (initget 1 "S N")
        (setq inv (getkword "\nWant to Invert?<S/N>"))
        (if (= inv "S")
                (command "chprop" ULT "" "LT" "" "autotalude1" "")
                (setvar "celtype" "autotalude1")
                ;(command "pedit" ULT "r" "" "yes" "" "s" "")
                ;(command "pedit" ult "S" "")
        )

BlackBox 发表于 2022-7-6 09:47:59

我很确定这篇文章属于LISP论坛。
 
我没有任何talude lisp文件(据我所知),也许你也可以发布?

cyberrog 发表于 2022-7-6 09:51:26

我正在为talude创建一个函数。但是,在网上:
 
代码:
command "chprop" ULT "" "LT" "" "autotalude1" "")
它无法识别该命令。
 
谁能告诉我为什么?
 
以下是我反转属性的代码部分:
 
代码:
(setq ULT (entlast))
        (command "pedit" ult "spline" "")
        (setvar "celtype" "autotalude2")

        (initget 1 "S N")
        (setq inv (getkword "\nWant to Invert?<S/N>"))
        (if (= inv "S")
                (command "chprop" ULT "" "LT" "" "autotalude1" "")
                (setvar "celtype" "autotalude1")
)       

alanjt 发表于 2022-7-6 10:03:38

如果在getkword提示符下键入“S”,它应该可以工作。您可以尝试使用“_.chprop”来解释语言和重新定义。您也可以尝试旧的CHANGE命令。

cyberrog 发表于 2022-7-6 10:19:03

你说的“解释语言”是什么意思?

alanjt 发表于 2022-7-6 10:22:47

如果您不使用英语版本的AutoCAD。

SLW210 发表于 2022-7-6 10:32:53

我已经合并了你们的帖子,并没有必要为同一个问题创建两个线程。若你们觉得你们发错了帖子,版主可以帮你们移动帖子。同一个问题的多个线程会让人困惑。
 
非常感谢。
页: [1]
查看完整版本: Ta的chprop命令出错