CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoLISP 开发指南

反应堆后的清理

2023-1-5 06:48| 发布者: admin| 查看: 241| 评论: 0|来自: AutoCAD

反应堆确实非常活跃。当您设计依赖于它们的应用程序时,您很可能会花费大量时间使程序崩溃,并可能使AutoCAD崩溃。如有必要,有一个工具可以移除您添加的所有反应堆会有所帮助。

gpreact.lsp文件包含一个函数,它本身没有太多作用。相反,它会调用函数。通过将以下代码复制到文件末尾,将此函数添加到utils.lsp文件:gp:clean-all-reactorsCleanReactors

;;;--------------------------------------------------------------;
;;;     Function: CleanReactors                                  ;
;;;--------------------------------------------------------------;
;;;  Description: General utility function used for cleaning up  ;
;;;               reactors. It can be used during debugging, as  ;
;;;               well as cleaning up any open reactors before   ;
;;;               a drawing is closed.                           ;
;;;--------------------------------------------------------------;
(defun CleanReactors ()
  (mapcar 'vlr-remove-all
         '(:VLR-AcDb-reactor
           :VLR-Editor-reactor
           :VLR-Linker-reactor
           :VLR-Object-reactor
          )
  )
)

路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 )

GMT+8, 2024-5-19 15:26

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部