twsyzx 发表于 2013-11-12 10:45:30

请问这行命令有什么错误啊

(defun c:a2()
(setvar "hpname" "ansi31")
(COMMAND"hatch" "" "100" "0")
(command "change" (entlast) "" "p" "la" "HATCH" "")
)



发现用不了,只能填充,但完成不了改图层,大神们,帮忙看看为什么啊,真没想明白

xyp1964 发表于 2013-11-12 13:13:42

(defun c:tt ()
(command "layer" "m" "hatch" "c" "c" "" "")
(setvar "hpname" "ansi31")
(command "hatch" "" "100" "0" (ssget) "")
(command "change" (entlast) "" "p" "la" "hatch" "")
(princ)
)

twsyzx 发表于 2013-11-12 13:25:59

多谢版主,刚才我也一直在研究,也搞清楚了,非常感谢,主要是丢了 ssget这步
再次感谢!!!
页: [1]
查看完整版本: 请问这行命令有什么错误啊