2024年2月24日发(作者:)

很多时候,autocad2006以上版本绘图过程中,偶尔会遇到编辑某些dwg文件时,复制、粘贴非常慢,甚至假性卡死,等你上完厕所回来还没有粘贴成功的情况。本人一直在同行以及网上寻找解决方案近一年而不得,反而在寻找过程中发现很多人反映都碰到过此问题,但是都苦于无法解决。

后来在一次偶然的机会,发现了一篇只有一百多字的博文,里面所提到的方法终于解决了此问题,本人在此共享出来,以使博主的发明惠及更多的同行。

解决方法很简单,就是在CAD的安装目录下的Support文件夹下面,有一个名字叫acad2008的lisp文件(其他版本的应该叫acad2007或者acad2006吧),将以下代码添加到此文件的最后即可:

(princ)

(command "-scalelistedit" "reset" "y" "e")

(command "-view" "_top")

(command "mtexted" ".")

最终得到的整个lisp文件全部内容如下(前面的为该文件内原有代码)

; MODULE_ID ACAD2007_LSP_

;;; Version 1.0 for AutoCAD 2008

;;;

;;; Copyright (C) 1994-2007 by Autodesk, Inc.

;;;

;;; Permission to use, copy, modify, and distribute this software

;;; for any purpose and without fee is hereby granted, provided

;;; that the above copyright notice appears in all copies and

;;; that both that copyright notice and the limited warranty and

;;; restricted rights notice below appear in all supporting

;;; documentation.

;;;

;;; AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.

;;; AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF

;;; MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.

;;; DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE

;;; UNINTERRUPTED OR ERROR FREE.

;;;

;;; Use, duplication, or disclosure by the U.S. Government is subject

to

;;; restrictions set forth in FAR 52.227-19 (Commercial Computer

;;; Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)

;;; (Rights in Technical Data and Computer Software), as applicable.

;;;

;;;.

;;;

;;; Note:

;;; This file is normally loaded only once per AutoCAD

session.

;;; If you wish to have LISP code loaded into every document,

;;; you should add your code to .

;;;

;;; Globalization Note:

;;; We do not support autoloading applications by the native

;;; language command call (e.g. with the leading underscore

;;; mechanism.)

(if (not (= (substr (ver) 1 11) "Visual LISP")) (load

""))

;; Silent load.

(princ)

(command "-scalelistedit" "reset" "y" "e")

(command "-view" "_top")

(command "mtexted" ".")