明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: 669423907

求一个可以保留标注样式是 PU 程序(已解决。多谢 zhynt 大师的热情帮助)

  [复制链接]
 楼主| 发表于 2011-6-11 23:22:12 | 显示全部楼层
回复 zhynt 的帖子

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

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
发表于 2011-6-12 08:19:21 | 显示全部楼层
请将程序发给我。
 楼主| 发表于 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""))

谢谢你的热情帮助。我现在用手机连电脑上,慢得很!
发表于 2011-6-12 18:44:07 | 显示全部楼层
你这个命令不是puu吗,你输入ppo当然不对啦。
发表于 2011-6-12 18:55:32 | 显示全部楼层
刚刚看了一下,每个n后面多了一个双引号。
应该是:
  1. (defun c:puu()
  2. (command "purge" "b" "" "n")
  3. (command "purge" "g" "" "n")
  4. (command "purge" "la" "" "n")
  5. (command "purge" "lt" "" "n")
  6. (command "purge" "ma" "" "n")
  7. (command "purge" "mu" "" "n")
  8. (command "purge" "p" "" "n")
  9. (command "purge" "p" "" "n")
  10. (command "purge" "p" "" "n")
  11. (command "purge" "sh" "" "n")
  12. (command "purge" "st" "" "n")
  13. (command "purge" "m" "" "n")
  14. (command "purge" "t" "" "n")
  15. (command "purge" "v" "" "n")
  16. (command "purge" "r" "" "n")
  17. (command "purge" "z" "" "n")
  18. (command "purge" "e" "" "n"))
 楼主| 发表于 2011-6-12 21:08:51 | 显示全部楼层
本帖最后由 669423907 于 2011-6-12 21:10 编辑

回复 zhynt 的帖子

程序还是有问题嘢!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
发表于 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")
)
零长度几何图形和空文字对象无需确认。
 楼主| 发表于 2011-6-13 00:52:24 | 显示全部楼层
回复 zhynt 的帖子

谢谢你的热情帮助,程序可以顺利运行了,只不过不能顺利结束!要按空格或esc才能结束命令。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-6-10 10:10 , Processed in 0.172394 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表