I want to test, whether an entity has been deleted or not.
Here is the code:
Code: Select all
var ent = doc.queryEntity(id);
var op = new RMixedOperation();
op.deleteObject(ent);
di.applyOperation(op);
var _ent = doc.queryEntity(id);
qDebug(_ent);
// RPolylineEntityPointer(0x54bb100)
I think, the reason is, that the entity still exists in history. Also isDeleted(_ent) is not true.