I want to clear AutoCAD undo history for my own requirement.Please help me solution to do it ?
Thanks
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.
I follow your instruction but fater then autoCAD run command :ONLINEDRAWINGS
si there problem here
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.