Disabling UNDO for the BREAK command...

Disabling UNDO for the BREAK command...

Anonymous
Not applicable
357 Views
4 Replies
Message 1 of 5

Disabling UNDO for the BREAK command...

Anonymous
Not applicable
Hi Guys!

Please help me for I am really stuck this time 😞

At some point in my program I have to break a PLINE into two parts, and I don't want the user to be able to undo that. so I'm calling the disableUndoRecording() of both AcDbDatabase and AcDbObject but still, the undo mechanism works by only erasing the second part of the splitted PLINE. For as you know, when you break an entity, the first part has the same handle whereas the second part seems to be a newly created entity. How can I prevent this break from being undone??? not to mention, I don't want to lose the undo mechanism completely. If there was a method or something which could erase the current undo information for a specified object, it'd be great.

Thanks in advance guys...

Regards, Omid Manikhi
0 Likes
358 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
You can't do that, without also disabling the ability
to undo back further.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:[email protected]...
Hi Guys!

Please help me for I am really stuck this time 😞

At some point in my program I have to break a PLINE into two parts, and I don't want the user to be able to undo that. so I'm calling the disableUndoRecording() of both AcDbDatabase and AcDbObject but still, the undo mechanism works by only erasing the second part of the splitted PLINE. For as you know, when you break an entity, the first part has the same handle whereas the second part seems to be a newly created entity. How can I prevent this break from being undone??? not to mention, I don't want to lose the undo mechanism completely. If there was a method or something which could erase the current undo information for a specified object, it'd be great.

Thanks in advance guys...

Regards, Omid Manikhi
0 Likes
Message 3 of 5

Anonymous
Not applicable
And, How can I do that...????
0 Likes
Message 4 of 5

Anonymous
Not applicable
How can you do what?

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:[email protected]...
And, How can I do that...????
0 Likes
Message 5 of 5

Anonymous
Not applicable
Never mind, I got around this problem by calling acdbHostApplicationServices()->workingDatabase()->disableUndoRecording(true);

twice!!
0 Likes