为什么(命令“ _regen”)使撤消组保持活动状态?
本帖最后由 newer 于 2021-1-7 17:34 编辑Question
Why does (command "_regen") leave an undo group active (UNDOCTL changes from 5
to 13)?How can this be prevented from happening?
Answer
This is a known problem in AutoCAD Release 14 and AutoCAD 2000.
Currently, there are two workarounds to this problem.
One workaround is to manually end the undo group as in the following example:
(command "_regen" "_undo" "_e")
The second workaround is to use the ActiveX functions from Visual LISP as in the
following example:
(vla-regen (vla-get-ActiveDocument (VLAX-GET-ACAD-OBJECT)) acAllViewports)
中文:
问题:为什么(命令“ _regen”)使撤消组保持活动状态(UNDOCTL从5更改到13)? 如何防止这种情况发生?
解答:
这是AutoCAD版本14和AutoCAD 2000中的一个已知问题。当前,有两种解决方法可以解决此问题。一种解决方法是手动终止撤消组,如以下示例所示:(命令“ _regen”“ _ undo”“ _ e”)
第二种解决方法是使用Visual LISP中的ActiveX函数,
如下面的例子:
(vla-regen(vla-get-ActiveDocument(VLAX-GET-ACAD-OBJECT))acAllViewports)
页:
[1]