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

yang686526 2009-05-07 05:35 PM

【转帖】undo Erasing Of An Elemen
 
undo erasing of an element
undo erasing of an element
hi,
why the second assert fails ? can i undo erasing of an element without using dwgdirect undo mechanism?
code:
{
oddbobjectptr pobject = arrobjectsid[i].openobject(oddb::kforwrite);
assert(!pobject.isnull());
pobject->erase();
}
{
oddbobjectptr pobject = arrobjectsid[i].openobject(oddb::kforwrite, true);
assert(!pobject.isnull()); // fails
pobject->erase(false);
}
regards,
michał Śliwka
if dd undo recording is turned off the object gets erased permanently (removed from memory).
sergey slezkin


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