<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: HowTo Suppress a Save Dialog Box. in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13160530#M1861</link>
    <description>&lt;P&gt;I would suggest that you try doing a SaveAs to a file in the temp folder and always overwrite any existing file so that the drawing is not in an unsaved state and the save dialog won't appear. I honestly don't think that there's any other way around that problem.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2024 15:50:16 GMT</pubDate>
    <dc:creator>ActivistInvestor</dc:creator>
    <dc:date>2024-11-19T15:50:16Z</dc:date>
    <item>
      <title>HowTo Suppress a Save Dialog Box.</title>
      <link>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13159715#M1855</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We running an AutoCAD Extension. We aslo set the system variable SDI to 1 (Single Document Interface).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Application&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;DocumentManager&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Open&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;A save dialog pops up, I need to suppress this dialog. I've tried CloseAndSave but because we're running SDI a document must be open. So basically when I open a doc the active doc will be closed I just don't want the active doc saved.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 10:11:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13159715#M1855</guid>
      <dc:creator>rberghLJ4SA</dc:creator>
      <dc:date>2024-11-19T10:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Suppress a Save Dialog Box.</title>
      <link>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13159770#M1856</link>
      <description>&lt;P&gt;Did you tried this,&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;   For intI = 0 To Acadapp.Documents.Count - 1 
       Acadapp.Documents.Item(intI).Close(SaveChanges:=False)
       Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 10:40:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13159770#M1856</guid>
      <dc:creator>murugamaha</dc:creator>
      <dc:date>2024-11-19T10:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Suppress a Save Dialog Box.</title>
      <link>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13159779#M1857</link>
      <description>&lt;P&gt;Doesn't work we're in Single Document Interface Mode ... Cannot close the document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Multiple-Design-Environment-MDE-does-not-function.html" target="_blank" rel="noopener"&gt;https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Multiple-Design-Environment-MDE-does-not-function.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 10:46:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13159779#M1857</guid>
      <dc:creator>rberghLJ4SA</dc:creator>
      <dc:date>2024-11-19T10:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Suppress a Save Dialog Box.</title>
      <link>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13159859#M1858</link>
      <description>Did you try Cmddia variable to 0.</description>
      <pubDate>Tue, 19 Nov 2024 11:39:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13159859#M1858</guid>
      <dc:creator>murugamaha</dc:creator>
      <dc:date>2024-11-19T11:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Suppress a Save Dialog Box.</title>
      <link>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13159935#M1859</link>
      <description>&lt;P&gt;Thanks for your suggestion, unfortunately that did not work.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 12:15:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13159935#M1859</guid>
      <dc:creator>rberghLJ4SA</dc:creator>
      <dc:date>2024-11-19T12:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Suppress a Save Dialog Box.</title>
      <link>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13160380#M1860</link>
      <description>if it is ok and you do not feel irritated, can you send a video, so that i can understand the sequence</description>
      <pubDate>Tue, 19 Nov 2024 15:02:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13160380#M1860</guid>
      <dc:creator>murugamaha</dc:creator>
      <dc:date>2024-11-19T15:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Suppress a Save Dialog Box.</title>
      <link>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13160530#M1861</link>
      <description>&lt;P&gt;I would suggest that you try doing a SaveAs to a file in the temp folder and always overwrite any existing file so that the drawing is not in an unsaved state and the save dialog won't appear. I honestly don't think that there's any other way around that problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 15:50:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13160530#M1861</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2024-11-19T15:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Suppress a Save Dialog Box.</title>
      <link>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13162016#M1862</link>
      <description>&lt;P&gt;Sorry if I can across as irretated, I wasn't. I happy to try anything at this point&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 06:15:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13162016#M1862</guid>
      <dc:creator>rberghLJ4SA</dc:creator>
      <dc:date>2024-11-20T06:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Suppress a Save Dialog Box.</title>
      <link>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13162017#M1863</link>
      <description>&lt;P&gt;I am going try that now.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 06:16:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13162017#M1863</guid>
      <dc:creator>rberghLJ4SA</dc:creator>
      <dc:date>2024-11-20T06:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Suppress a Save Dialog Box.</title>
      <link>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13162056#M1864</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;object obj = Autodesk.AutoCAD.ApplicationServices.Application.GetSystemVariable("DWGTITLED");

        // Check to see if the drawing has been named
        if (System.Convert.ToInt16(obj) == 0)
        {
            if (File.Exists(Path.Combine(FileHandler.AppDataInstancePath(), "WorkingDoc.dwg")))
            {
                Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Database.SaveAs(Path.Combine(Environment.ExpandEnvironmentVariables("%temp%"),"temp.dwg"),true,DwgVersion.Current,null);
                //Still showing save dialog on Open...
                Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.Open(Path.Combine(FileHandler.AppDataInstancePath(), "WorkingDoc.dwg"));
            }

            Document acDoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
            string strDWGName = acDoc.Name;
            acDoc.Database.SaveAs(Path.Combine(FileHandler.AppDataInstancePath(), "WorkingDoc.dwg"), true, DwgVersion.Current, null);

        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I've tried, I still get a Save dialog on opening of the WorkingDoc.dwg. Even after saving the default drawing to a temp folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Btw this is running in Application context during initialization of AutoCAD.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 06:50:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13162056#M1864</guid>
      <dc:creator>rberghLJ4SA</dc:creator>
      <dc:date>2024-11-20T06:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Suppress a Save Dialog Box.</title>
      <link>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13162118#M1865</link>
      <description>&lt;P&gt;Can you try this sequence and tell.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;  'EndAcadTasks()
  Acadapp = CreateObject("AutoCAD.Application")
  Acadapp.Visible = True
  Acadapp.WindowState = AcWindowState.acMax
  Acaddoc = Acadapp.ActiveDocument
  Acaddoc.SetVariable("SDI", 1)
  Acadapp.Documents.Open("e:\testcad.dwg")

'''' code for endAcadTasks if required 
Public Sub EndAcadTasks()
     Try
         Dim processes As Process() = Process.GetProcessesByName("acad")
         For Each proc As Process In processes
             proc.Kill()
         Next
     Catch ex As Exception
         MsgBox("Error ending acad.exe tasks: " &amp;amp; ex.Message)
     End Try
 End Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Nov 2024 07:04:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13162118#M1865</guid>
      <dc:creator>murugamaha</dc:creator>
      <dc:date>2024-11-20T07:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo Suppress a Save Dialog Box.</title>
      <link>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13162294#M1866</link>
      <description>&lt;P&gt;I would tr&lt;SPAN&gt;y using the COM AcadDocument.SaveAs() method.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 08:49:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/howto-suppress-a-save-dialog-box/m-p/13162294#M1866</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2024-11-20T08:49:59Z</dc:date>
    </item>
  </channel>
</rss>

