ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How i clear AUTOCAD undo history ?

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
5543 Views, 3 Replies

How i clear AUTOCAD undo history ?

I want to clear AutoCAD undo history for my own requirement.Please help me solution to do it ?

 

Thanks

3 REPLIES 3
Message 2 of 4
StephenPreston
in reply to: Anonymous

One way to clear the undo history and then turn it back on would be:

 

acDocManager->sendStringToExecute(acDocManager->curDocument(),L"_UNDO _C _N _UNDO _A _ON ");

 

You could probably also use acedCommand to invoke the same set of command tokens.

 

Cheers,

Stephen Preston
Autodesk Developer Network
Message 3 of 4
Anonymous
in reply to: StephenPreston

I follow your instruction but fater then autoCAD run command :ONLINEDRAWINGS

si there problem here

Message 4 of 4
Balaji_Ram
in reply to: Anonymous

Sorry, I dont get the problem you seem to be having with the code provided by Stephen.

You can try what Stephen has mentioned directly using AutoCAD as follows :

 

1. Create a few circles

2. Launch "undo" command

3. Specify "Control" keyword

4. Specify "None" keyword

5. Launch "undo" command

6. Select "All" keyword

 

All the entries from the undo list is cleared.

 

 

 

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost