Save information

Discussion in 'AutoCAD' started by Gilles, Jun 25, 2003.

  1. Gilles

    Gilles Guest

    When I do something like this:

    Public Sub Multiple_Save_Purge_Audit()
    Dim doc As AcadDocument

    For Each doc In Documents
    doc .Save
    Next

    End Sub


    the drawing is saved (I see it in the explorer) but it seems that the
    variable which stores the "saved drawing value" is FALSE.
    Anyone knows how to set this variable (and which is it?) to TRUE??? Because
    when I try to close my drawing, Autocad asks me to save the already saved
    drawing.


    Thanks,


    Gilles
     
    Gilles, Jun 25, 2003
    #1
  2. Gilles

    Tim Riley Guest

    The saved variable cannot be set through code. This code works for me
    though.....


    Public Sub Multiple_Save_Purge_Audit()
    Dim doc As AcadDocument

    For Each doc In Documents
    If doc.Saved = False And doc.ReadOnly = False Then
    doc.Save
    End If
    Next

    End Sub

    Tim Riley
     
    Tim Riley, Jun 26, 2003
    #2
  3. Gilles

    Gilles Guest

    Thanks a lot Tim,

    Working perfectly

    Gilles
     
    Gilles, Jun 27, 2003
    #3
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.