Undo an AutoLISP revert

Undo an AutoLISP revert

mursix
Participant Participant
286 Views
5 Replies
Message 1 of 6

Undo an AutoLISP revert

mursix
Participant
Participant

Is there anyway to undo a revert in the Visual Lisp editor? While running part of my program something went wrong and the Visual editor asked to revert. I accidently clicked YES and lost my program. The full program is still loaded into AutoCAD and will run but my editor is empty as well as the saved file. I have left the computer running. Am using a windows 10 pro and AutoCAD 2022. Any help would be greatly appreciated.

Thanks,

Ned

0 Likes
287 Views
5 Replies
Replies (5)
Message 2 of 6

Sea-Haven
Mentor
Mentor

Like the saying goes, save save save, the big disaster is when the power goes off. Have notepad open as well and copy and paste now and then to notepad as a backup. 

0 Likes
Message 3 of 6

mursix
Participant
Participant

Yes, shame on me for not backing up my files. It's tough to loose a weeks worth of work. Even though the file got wiped out it is still loaded in AutoCAD. The program will run so it is intact in memory. I was just hoping there was some way to extract it out of memory and save it back to a file. That is well above my knowledge even if possible. Thank You though for your response, appreciate it.

0 Likes
Message 4 of 6

Sea-Haven
Mentor
Mentor

I use Notepad++ it auto saves a sort of hidden back up, there is a Lisp plug in so can run code from Notepad++ but it does not debug. 

0 Likes
Message 5 of 6

john.uhden
Mentor
Mentor

@mursix ,

Just had the same issue the other day.

Luckily I use a tedious process of copying the code and pasting it into the AutoCAD text screen in order to test.

With AutoLog turned on I can always look back into log files to recover the code.

Another way would be to use (defun-q) which will not encrypt the code, so you could just recover it from the atoms-family.

John F. Uhden

0 Likes
Message 6 of 6

mursix
Participant
Participant

Thank you John, that is very useful information to know. I appreciate the response. 

0 Likes