This has been a bother since I started working with AutoCad. I spend time selecting objeces only to find the need to undo a command at which time I lose the objects I slected. Is there a way to retain objects that have been selected after an undo has been carried out.
I may have lead you astray. What I posted works in AutoCAD2011 and newer, but the selection is not remembered after Undo in 2005. I don't have any versions in between to test when the behavior changed.
Perhaps instead of UNDO, just re-issue the command then press "P" when prompted to select objects, and modify the objects in the manner you had originally intended. I did search a little, but didn't find which version they changed it to remember the selection even though an UNDO.
Undo is a very useful command, but it is appalling that Autodesk does not allow users to retain their selection following an undo as recently as version 2009. I remember using Autocad years ago, and this problem existed at that time as well.
I guess with a lisp routine, the selection set can be written out as a temporary file, with all entities' handles in it. Then when recall after UNDO, it can read the entities' handles back to the drawing and select them again.
Can't find what you're looking for? Ask the community or share your knowledge.