Author Topic: database disableundorecording  (Read 2284 times)

0 Members and 1 Guest are viewing this topic.

nekitip

  • Guest
database disableundorecording
« on: April 29, 2013, 05:09:50 AM »
On the following link:
http://au.autodesk.com/?nd=material&session_material_id=53462
is a text about redo/undo.
There is also a following part:
Quote
AcDbDatabase::disableUndoRecording(bool disabling);
AcDbObject::disableUndoRecording(bool disabling);

Both are quite dangerous, especially AcDbDatabase method.
Avoid calling methods that might trigger reactors when UNDO disabled.

what is that?
can't we call db.disableundorecording(true) when needed?

TheMaster

  • Guest
Re: database disableundorecording
« Reply #1 on: April 29, 2013, 02:44:41 PM »
On the following link:
http://au.autodesk.com/?nd=material&session_material_id=53462
is a text about redo/undo.
There is also a following part:
Quote
AcDbDatabase::disableUndoRecording(bool disabling);
AcDbObject::disableUndoRecording(bool disabling);

Both are quite dangerous, especially AcDbDatabase method.
Avoid calling methods that might trigger reactors when UNDO disabled.

what is that?
can't we call db.disableundorecording(true) when needed?

The few times that I used it, which was long ago, I noticed that REDO would not always work when it should have. I can't tell you why however.