Author Topic: autocad 2019 propmpting for dwg recovery when opening dwgs  (Read 7336 times)

0 Members and 1 Guest are viewing this topic.

andrew..

  • Newt
  • Posts: 24
When I open any dwg, either older dwgs or dwgs created in 2019, when I close them and then go to reopen them
I am being prompted for dwg recovery everytime.
Anyone else have this issue or have a suggestion on why this is?

Is it a new thing in 2019?

ChrisCarlson

  • Guest
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #1 on: May 04, 2018, 01:23:00 PM »
Does it occur when you start a new 2019 template, save, and reopen?

rkmcswain

  • Swamp Rat
  • Posts: 978
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #2 on: May 04, 2018, 01:23:49 PM »
Is this plain AutoCAD or a vertical app?

andrew..

  • Newt
  • Posts: 24
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #3 on: May 04, 2018, 02:06:18 PM »
http://www.theswamp.org/index.php?topic=54165.new#new

It is actually my save code. when i save the dwg with my customer save and i reopen the dwg, I get the recovery prompt.
I never had an issue with this code till now.

any suggestions?

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2139
  • class keyThumper<T>:ILazy<T>
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #4 on: May 04, 2018, 04:30:05 PM »
Andrew,
It may help if you answer the requests for information from people trying to assist you in this matter.

Regards,
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2139
  • class keyThumper<T>:ILazy<T>
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #5 on: May 04, 2018, 04:32:04 PM »

Does the error occur with a previously saved drawing
or with a newly named drawing
or both ?
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #6 on: May 04, 2018, 06:00:01 PM »
http://www.theswamp.org/index.php?topic=54165.new#new

It is actually my save code. when i save the dwg with my customer save and i reopen the dwg, I get the recovery prompt.
I never had an issue with this code till now.

any suggestions?

Update your code, or don't use it...does the Recovery Prompt go away IF you don't use the code you mention in the post I quoted?
Be your Best


Michael Farrell
http://primeservicesglobal.com/

andrew..

  • Newt
  • Posts: 24
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #7 on: May 07, 2018, 01:35:02 PM »
Does it occur when you start a new 2019 template, save, and reopen?

it happens when i use my custom save command.
If i start a new file and save with my custom save command and close it and open it again. i get this recovery prompt
if i open an old file i get the recovery prompt.
If it run the recovery on any of these dwgs and save with the OOTB save command and reopen it. i get NO recovery prompt.

andrew..

  • Newt
  • Posts: 24
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #8 on: May 07, 2018, 01:35:39 PM »

Does the error occur with a previously saved drawing
or with a newly named drawing
or both ?
both it appears any dwg saved with my custom save is causing this

andrew..

  • Newt
  • Posts: 24
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #9 on: May 07, 2018, 01:37:00 PM »
http://www.theswamp.org/index.php?topic=54165.new#new

It is actually my save code. when i save the dwg with my customer save and i reopen the dwg, I get the recovery prompt.
I never had an issue with this code till now.

any suggestions?

Update your code, or don't use it...does the Recovery Prompt go away IF you don't use the code you mention in the post I quoted?

correct.
i do not get a recovery prompt if i dont use my custom code.
I have used this custom command for a few years. never been an issue till the new version

pendean

  • Mosquito
  • Posts: 20
  • "I am not a number, I am a free man"
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #10 on: May 07, 2018, 01:51:11 PM »
Post the code, let's all have a look at it.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2139
  • class keyThumper<T>:ILazy<T>
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #11 on: May 07, 2018, 04:10:44 PM »
Post the code, let's all have a look at it.

The code is here : http://www.theswamp.org/index.php?topic=54165.msg587819#msg587819

andrew: I meant to ask ;
What happens if you add Audit the drawing after you save it with your routine?

and, are you still using the same routine?
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

pendean

  • Mosquito
  • Posts: 20
  • "I am not a number, I am a free man"
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #12 on: May 08, 2018, 08:57:55 AM »
i do not get a recovery prompt if i dont use my custom code.
I have used this custom command for a few years. never been an issue till the new version
Andrew...

Why do you need the ver.20 check in the code?
What dwg-version are you saving your files to in R2019?

It's appears either no one here has R2019 or no one wants to try your code on their PC: are you simply trying to save your file in two locations at the same time?

steve.carson

  • Newt
  • Posts: 108
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #13 on: May 08, 2018, 10:09:35 AM »
FWIW, your code works as I would expect on my C3D2018 (don't have 2019 installed). No recovery messages, only creates the backup if C:\ACADBACK\ exists.

pendean

  • Mosquito
  • Posts: 20
  • "I am not a number, I am a free man"
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #14 on: May 08, 2018, 04:06:14 PM »
Lisp works fine here in R2019 as well: wonder what other settings Andrew.. has that we do not.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2139
  • class keyThumper<T>:ILazy<T>
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #15 on: May 08, 2018, 07:10:50 PM »
i do not get a recovery prompt if i dont use my custom code.
I have used this custom command for a few years. never been an issue till the new version
Andrew...

Why do you need the ver.20 check in the code?
What dwg-version are you saving your files to in R2019?

It's appears either no one here has R2019 or no one wants to try your code on their PC: are you simply trying to save your file in two locations at the same time?

The check for version >=20 is only for usage of command-s
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2139
  • class keyThumper<T>:ILazy<T>
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #16 on: May 08, 2018, 07:14:13 PM »
This works for me in vanilla 2019
Code - Auto/Visual Lisp: [Select]
  1. (defun c:nsave (/ activedoc docfullname backuppath archivename)
  2.         backuppath "C:\\ACADBACK\\"
  3.   )
  4.   (if (zerop (getvar "dwgtitled"))
  5.     (progn (initdia)
  6.            (if (>= (atof (getvar "acadver")) 20.0)
  7.              (command-s ".saveas")
  8.              (command ".saveas")
  9.            )
  10.     )
  11.     ;; else it's already named , so
  12.     (vla-save activedoc)
  13.   )
  14.   (if
  15.     (and
  16.       (not (zerop (strlen (setq docfullname (vla-get-fullname activedoc)))))
  17.       (or (vl-file-directory-p backuppath) (vl-mkdir backuppath))
  18.       (setq archivename (strcat backuppath (vl-filename-base (vla-get-name activedoc)) ".dwg"))
  19.     )
  20.      (progn (if (findfile archivename)
  21.               (vl-file-delete archivename)
  22.             )
  23.             (vl-file-copy docfullname archivename)
  24.      )
  25.      ;; else
  26.      (alert "Ooooops. Unable to copy or deternine  Filename.")
  27.   )
  28.   (prompt (strcat "\n\nFile Saved..." archivename))
  29.   (prompt (strcat "\n\nFile Saved..." docfullname))
  30.   (princ)
  31. )
  32.  

added: OP original code modified to suit the way my brain works.

« Last Edit: May 08, 2018, 07:18:06 PM by kdub »
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

andrew..

  • Newt
  • Posts: 24
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #17 on: May 09, 2018, 02:42:24 PM »
Post the code, let's all have a look at it.

The code is here : http://www.theswamp.org/index.php?topic=54165.msg587819#msg587819

andrew: I meant to ask ;
What happens if you add Audit the drawing after you save it with your routine?

and, are you still using the same routine?
dont know. I havent thought about it.
How would i add that in?

andrew..

  • Newt
  • Posts: 24
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #18 on: May 09, 2018, 02:44:22 PM »
i do not get a recovery prompt if i dont use my custom code.
I have used this custom command for a few years. never been an issue till the new version
Andrew...

Why do you need the ver.20 check in the code?
What dwg-version are you saving your files to in R2019?

It's appears either no one here has R2019 or no one wants to try your code on their PC: are you simply trying to save your file in two locations at the same time?
check for versions because there are a few in the office who refuse to leave R2014
and yes the code is saving the dwg in 2 locations at the same time

andrew..

  • Newt
  • Posts: 24
Re: autocad 2019 propmpting for dwg recovery when opening dwgs
« Reply #19 on: May 09, 2018, 02:46:21 PM »
Lisp works fine here in R2019 as well: wonder what other settings Andrew.. has that we do not.

if no one else is getting the recovery prompt. it has to be a setting somewhere else thats triggering it.

i appreciate the feedback now i will have to hunt down the cause.