Results 1 to 2 of 2

Thread: auto SAVE drawing when user closes it

  1. #1
    Guest

    auto SAVE drawing when user closes it

    user closes the drawing (unsaved). i want to make sure that drawing
    is saved no matter what, even if user said 'no' on 'save file?'
    dialog... i know it can be done in objectarx (and i've tried), but it's
    too complicated. anyone knows quick (or not quick but working) way to
    do that? thanks for any suggestions or comments...

    why do i need that: we're doing GIS, so changes in drawing are
    reflected in database, and if drawing is not saved - we have
    inconsistency...

  2. #2
    Guest
    In VBA, open the VBA editor and in ThisDrawing under the AutoCAD
    objects in any project.

    Create the BeginClose event and place the code ThisDrawing.Save

    eg.
    Private Sub AcadDocument_BeginClose()

    ThisDrawing.Save
    End Sub

    Regardless of what the user chooses 'Yes' or 'No' to saving the file
    upon closing the drawing, the drawing will be saved


    I hope this helps

    Anthony Ryan

Similar Threads

  1. Save View-Only drawing as PDF
    By lcifers in forum SolidWorks
    Replies: 2
    Last Post: 12-12-2005, 09:10 AM
  2. Replies: 1
    Last Post: 10-16-2005, 11:24 PM
  3. Replies: 4
    Last Post: 07-01-2005, 09:10 AM
  4. auto cad 2002 ---can not save dwg?
    By Rockhard Arts in forum Customization
    Replies: 0
    Last Post: 01-31-2005, 11:01 PM
  5. Visual Basic Auto Drawing
    By Bught in forum VBA
    Replies: 5
    Last Post: 01-13-2005, 06:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - Exchange Server Forum