查看单个帖子
旧 2009-05-07, 05:35 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)