Ammending the Recover Command

Discussion in 'AutoCAD' started by Mike Edmiston, Mar 11, 2005.

  1. I"m having a problem in this office with my server crashing, (an IT issue
    that will take months to fix,) and all files needing to be recovered. They
    recover fine, but the problem occurs when the user doesn't "Save As..." to
    the correct name. Xref's then get lost or need to be re-attached etc...
    What I'm a wondering is, how can I ammend the Recover command so that it
    doesn't open the drawing as <filename>recover.dwg. Or, Can I make the
    recover command open like a new drawing with the file name Drawing1.dwg, so
    the next save is an automatic "Save As..." Or can I make it so the next
    Save after a drawing is recovered is "Save As..." instead of just Save.
    Thanks
     
    Mike Edmiston, Mar 11, 2005
    #1
  2. so you are saying you want something to recover a file and saveas to the original name?

    I think a script is the answer. You might need to throw in a bit of lisp in the script to pare down the name of the
    file, something like:
    (command "saveas" (vl-string-left-trim "RECOVER-" (STRCASE (GETVAR "DWGNAME"))))

    you get the idea.
    Scripts are cool because they run without the need for a drawing.
    They do not stop just because the file they were started from gets closed.


    "Mike Edmiston" <>
    |>I"m having a problem in this office with my server crashing, (an IT issue
    |>that will take months to fix,) and all files needing to be recovered. They
    |>recover fine, but the problem occurs when the user doesn't "Save As..." to
    |>the correct name. Xref's then get lost or need to be re-attached etc...
    |>What I'm a wondering is, how can I ammend the Recover command so that it
    |>doesn't open the drawing as <filename>recover.dwg. Or, Can I make the
    |>recover command open like a new drawing with the file name Drawing1.dwg, so
    |>the next save is an automatic "Save As..." Or can I make it so the next
    |>Save after a drawing is recovered is "Save As..." instead of just Save.
    |>Thanks
    |>

    James Maeding
    jmaeding at hunsaker dot com
    Civil Engineer/Programmer
     
    James Maeding, Mar 12, 2005
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.