chelsea1307 发表于 2022-7-6 14:24:53

ls上的参数过多错误

是的,我知道这可以写得更好20种不同的方式,如果有人想继续下去。如果没有,如果有人能告诉我如何修复它,这样它就会运行并产生预期的结果,那就太好了!
(defun C:freeze)
(command "_.layer" "Freeze" "structural")
(command "_.layer" "Freeze" "sahco")
(command "_.layer" "Freeze" "jwmc")
(command "_.layer" "Freeze" "tbf")
(command "_.layer" "Freeze" "3d piping")
(princ)
)

JeepMaster 发表于 2022-7-6 14:35:05

你的第一行有一个额外的“)”,或者在第一行有一个缺失和额外的“(”。
 
(defun c:冻结()。。。

chelsea1307 发表于 2022-7-6 14:49:59

我知道这很简单谢谢

The Buzzard 发表于 2022-7-6 14:51:37

 
 
切尔西,请比较一下
 
(defun C:freeze ()

(command "_.layer" "Freeze" "structural")
(command "_.layer" "Freeze" "sahco")
(command "_.layer" "Freeze" "jwmc")
(command "_.layer" "Freeze" "tbf")
(command "_.layer" "Freeze" "3d piping")
(princ)
)

jammie 发表于 2022-7-6 15:03:12

根据JeepMaster的帖子,您可能需要在冻结层的每行末尾添加“”。它将允许每一行代码完成并干净地退出
 

(command "_.layer" "Freeze" "structural" "")

chelsea1307 发表于 2022-7-6 15:08:02

谢谢,我会补充的!

Shawndoe 发表于 2022-7-6 15:22:17

你好
 
试试这个。
 

(command "._Layer" "Freeze" "structural,sahco,jwmc,tbf,3d piping" "")

 
祝你过得愉快。
肖恩多

chelsea1307 发表于 2022-7-6 15:32:55

我知道这可能更简单。。。谢谢
页: [1]
查看完整版本: ls上的参数过多错误