Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Undo an AutoLISP revert

4 REPLIES 4
Reply
Message 1 of 5
mursix
150 Views, 4 Replies

Undo an AutoLISP revert

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

4 REPLIES 4
Message 2 of 5
Sea-Haven
in reply to: mursix

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. 

Message 3 of 5
mursix
in reply to: mursix

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.

Message 4 of 5
Sea-Haven
in reply to: mursix

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. 

Message 5 of 5
john.uhden
in reply to: mursix

@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

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

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report