Suppressing the dialog window for all messages.

Discussion in 'AutoCAD' started by Paul Thompson, Feb 12, 2004.

  1. Hello,

    I am trying to write a batch routine that will have no user interaction. I'm
    using AutoCAD 2004 and the file that is giving me problems is an AutoCAD
    2000 file. The dialog box I get when I try opening this file is as follows:

    "This drawing was last saved by an earlier version of this application.
    Saving the drawing will upgrade it to the current version which is
    incompatable with the earlier version."

    First of all I don't care of the incompatability problem due to the fact
    that I'm opening all of the files in READ ONLY mode. I have tried setting
    EXPERT to 5 using s::starup, however I still get this message. The odd thing
    is, is that for most of my other AutoCAD 2000 and even AutoCAD 14 files I
    don't get this dialog popping up.

    Here is a sample of my VB.NET code:

    If objAcadApp.Documents.Count < 1 Then
    objAcadDoc = objAcadApp.Documents.Add("acad.dwt")
    Else
    objAcadDoc = objAcadApp.ActiveDocument
    End If
    objAcadApp.Visible = True
    objAcadDoc.SetVariable("SDI", 0)

    For Each objDataRow In objFileDataTable.Rows
    'Open DWG file
    objAcadDoc =
    objAcadApp.Documents.Open(Path.Combine(objDataRow.Item("File_Path"),
    objDataRow.Item("File_Name")), objReadOnly)
    objAcadDoc.SetVariable("SDI", 0)
     
    Paul Thompson, Feb 12, 2004
    #1
  2. Nathan Taylor, Feb 12, 2004
    #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.