669423907 发表于 2011-6-11 23:22:12

回复 zhynt 的帖子

程序出现问题还望大师再次帮忙:
把程序放到启动组中,启动cad时出现以下提示
按下快捷键(ppo)提示未知命令(ppo)

zhynt 发表于 2011-6-12 08:19:21

请将程序发给我。

669423907 发表于 2011-6-12 16:39:07

回复 zhynt 的帖子

(defun c:puu()
(command "purge" "b" "" "n"")
(command "purge" "g" "" "n"")
(command "purge" "la" "" "n"")
(command "purge" "lt" "" "n"")
(command "purge" "ma" "" "n"")
(command "purge" "mu" "" "n"")
(command "purge" "p" "" "n"")
(command "purge" "p" "" "n"")
(command "purge" "p" "" "n"")
(command "purge" "sh" "" "n"")
(command "purge" "st" "" "n"")
(command "purge" "m" "" "n"")
(command "purge" "t" "" "n"")
(command "purge" "v" "" "n"")
(command "purge" "r" "" "n"")
(command "purge" "z" "" "n"")
(command "purge" "e" "" "n""))

谢谢你的热情帮助。我现在用手机连电脑上,慢得很!

zhynt 发表于 2011-6-12 18:44:07

你这个命令不是puu吗,你输入ppo当然不对啦。

zhynt 发表于 2011-6-12 18:55:32

刚刚看了一下,每个n后面多了一个双引号。
应该是:(defun c:puu()
(command "purge" "b" "" "n")
(command "purge" "g" "" "n")
(command "purge" "la" "" "n")
(command "purge" "lt" "" "n")
(command "purge" "ma" "" "n")
(command "purge" "mu" "" "n")
(command "purge" "p" "" "n")
(command "purge" "p" "" "n")
(command "purge" "p" "" "n")
(command "purge" "sh" "" "n")
(command "purge" "st" "" "n")
(command "purge" "m" "" "n")
(command "purge" "t" "" "n")
(command "purge" "v" "" "n")
(command "purge" "r" "" "n")
(command "purge" "z" "" "n")
(command "purge" "e" "" "n"))

669423907 发表于 2011-6-12 21:08:51

本帖最后由 669423907 于 2011-6-12 21:10 编辑

回复 zhynt 的帖子

程序还是有问题嘢!

zhynt 发表于 2011-6-12 22:51:54

本帖最后由 zhynt 于 2011-6-12 22:52 编辑

(defun c:puu()
(command "purge" "b" "" "n")
(command "purge" "g" "" "n")
(command "purge" "la" "" "n")
(command "purge" "lt" "" "n")
(command "purge" "ma" "" "n")
(command "purge" "mu" "" "n")
(command "purge" "p" "" "n")
(command "purge" "p" "" "n")
(command "purge" "p" "" "n")
(command "purge" "sh" "" "n")
(command "purge" "st" "" "n")
(command "purge" "m" "" "n")
(command "purge" "t" "" "n")
(command "purge" "v" "" "n")
(command "purge" "r" "" "n")
(command "purge" "z")
(command "purge" "e")
)
零长度几何图形和空文字对象无需确认。

669423907 发表于 2011-6-13 00:52:24

回复 zhynt 的帖子

谢谢你的热情帮助,程序可以顺利运行了,只不过不能顺利结束!要按空格或esc才能结束命令。
页: 1 [2]
查看完整版本: 求一个可以保留标注样式是 PU 程序(已解决。多谢 zhynt 大师的热情帮助)