几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】free undoredo (http://www.dimcax.com/hust/showthread.php?t=16345)

yang686526 2009-05-05 11:07 AM

【转帖】free undoredo
 
free undo/redo
free undo/redo
hello, how can i free the undo redo list of a database ?
regards.
it's impossible. the undo/redo data is released only together with database.
btw, currently maxundosteps is not supported by dd too.
sergey slezkin
thanks for your answer sergey.
we have also a problem with startundorecord of a database.
if we have records in the undo list and in the redo list, then we call startundorecord it doesn't free the redo list (except if the database is modified), the problem is that it append a record in the undo list.
if you don't understand what i mean, you can reproduce it in odamfc.
you add two lines (2 undo, 0 redo)
you call undo (1 undo, 1 redo)
then you take a grip of the last line and you press "escape".
we could hope: 1 undo and one redo, or only 1 undo...
but the result is: 2 undo and one redo !
i think we should clear redo at startundorecord() call not at actual database modification.
we'll fix it.
sergey slezkin


所有的时间均为北京时间。 现在的时间是 06:45 AM.