明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1742|回复: 4

如何判断图形是否需要PURGE?

[复制链接]
发表于 2004-5-13 08:08:00 | 显示全部楼层 |阅读模式
在用vla-purgeall命令时,需要先判断图纸是否需要PURGE,如何判断。


我试过,不论图形是否需要PURGE,vla-purgeall都返回NIL
发表于 2004-5-13 14:52:00 | 显示全部楼层
等判断得来,都已经purge完一次了。。。。。
发表于 2004-5-13 15:07:00 | 显示全部楼层
楼上说的对
 楼主| 发表于 2004-5-13 16:59:00 | 显示全部楼层
但有些图纸不是PURGE一次就完全清理干净。


或者这样说,先PURGE一次,如何判断是否进行下一次PURGE.
发表于 2004-5-13 17:00:00 | 显示全部楼层
(defun c:purgnest (/ test tpurgd purgd total)
(setq tpurgd 0)
(setq purgd 2)
(while (>= purgd 2)
(progn (setq purgd 0)
(cond
(t
(setvar "cmdecho" 0)
(command "_.purge" "_all" "*")
(while (not (zerop (getvar "cmdactive")))
(command "_y")
(setq purgd (1+ purgd))
(setq tpurgd (1+ tpurgd))
)
)
)
(prompt "\nPurging nested items!")
(princ "\n")
(setq tpurgd (1- tpurgd))
)
)
(setq total (cons tpurgd '(items purged)))
(princ total)
(princ)
)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-10-1 10:29 , Processed in 0.168618 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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