几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】undo-problem (http://www.dimcax.com/hust/showthread.php?t=18873)

yang686526 2009-05-07 05:37 PM

【转帖】undo-problem
 
undo-problem
undo-problem
hi,
i have a problem with undo. i load a dxf/dwg-file, call startundorecording(); and then i change the color of some entities.
when i make undo (), i get the message "undo-operation is not available".
i don't now why this happend...
mathias
you class derived from oddbhostappservices must implement function newundocontroller() to enable undo functionality.
see odamfcapp sample: odamfcappapp::newundocontroller() returns an object implementing undo controller interface.
its sample implementaion is in examples/exservices folder.
sergey slezkin

ah!
thanks, this function was the problem. it works fine, now.
mathias


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