请教个问题:
在图中我delete一条线,我打算在反映器Objecterased内恢复这条线段。总是有问题,哪位高手帮忙解决解决?
(1)下面代码返回:eNotOpenForWrite
AcDbObject *dbObj1=(AcDbObject *)dbObj;
ret=dbObj1->erase(Adesk::kFalse);
(2)下面代码不抱错,但却没恢复
objId = dbObj1->ownerId(); ret=acdbOpenObject(dbObj1,objId,AcDb::kForWrite,Adesk::kTrue); ret=dbObj1->erase(Adesk::kFalse); dbObj1->close(); |