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

yang686526 2009-05-07 05:36 PM

【转帖】undo Related Error
 
undo related error
undo related error
i am creating a layout & when i try to undo the same , i am getting
error on undo() and the error description says "was open for undo"
how can i rectify the same?
something similar to the following can also produce the same error.
m_pdb->startundorecord() , where m_pdb is oddbdatabaseptr
oddbobjectid blkid;
oddbobjectid layoutid = m_pdb->createlayout(layoutname,&blkid);
m_pdb->undo()
i still have problem with undo of layout creation. i also have database
reactor added to my project and i see that undo() causes objectunappended event gets called and it fails after the third call where pobject is acdbblockbegin. please help.
which dd version do you use?
i tried in odamfcapp:
-view/setactivelayout/create new
-undo (ctrl/z)
it works
but redo (ctrl/y) crashs if creating new layout and making it active (as in current odamfcapp code) is made as single step.
sergey slezkin
thanks for looking into my query. i am using dd1.14. the problem i have reported is resolved now. it was occuring due to improper coding in database
reactor events.


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