马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×

- ;; This example involves the task of iterating through the Documents collection
- ;; and performing a Purge, Audit and Save operation on each document.
- (defun C:DOALL (/ $acad docs dnum this)
- (setq $acad (vlax-get-acad-object)
- docs (vla-get-documents $acad)
- this (vla-get-activedocument $acad)
- dnum (vla-get-count docs)
- )
- (vlax-for each docs
- (vla-purgeall each)
- (vla-auditinfo each T)
- (vla-save each)
- )
- (vla-get-activedocument this)
- (vlax-release-object docs)
- (vlax-release-object this)
- (vlax-release-object $acad)
- (princ (strcat "\nProcessed " (itoa dnum) " drawings."))
- (princ)
- )
|