<?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: 2024 Saveas eNotOpenForWrite in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/2024-saveas-enotopenforwrite/m-p/12252290#M8811</link>
    <description>&lt;P&gt;Hi I am also getting this error code in Civil 3d 2024. Did reinstall twice, it works for a while then I get this error message and the program crashes.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2023 01:00:26 GMT</pubDate>
    <dc:creator>Johann.Walters</dc:creator>
    <dc:date>2023-09-20T01:00:26Z</dc:date>
    <item>
      <title>2024 Saveas eNotOpenForWrite</title>
      <link>https://forums.autodesk.com/t5/net-forum/2024-saveas-enotopenforwrite/m-p/11965357#M8806</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string prefix = "Acad-";
                            string timestamp = DateTime.Now.ToString("yyyyMMddHHmmss");
                            string newFileName = Path.Combine(Path.GetDirectoryName(doc.Name), prefix + timestamp + "-" + Path.GetFileName(doc.Name));
                            doc.Database.SaveAs(newFileName, true, DwgVersion.Current, default);
                            doc.CloseAndDiscard();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code works fine in AutoCAD 2022 and 2023 but not in 2024. Is there any change in AutoCAD API?&lt;/P&gt;&lt;P&gt;Can anyone help me to fix this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aruntr_0-1684176814141.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1214702i14ECA498D13182E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aruntr_0-1684176814141.png" alt="aruntr_0-1684176814141.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 18:54:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/2024-saveas-enotopenforwrite/m-p/11965357#M8806</guid>
      <dc:creator>yoitsarun</dc:creator>
      <dc:date>2023-05-15T18:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: 2024 Saveas eNotOpenForWrite</title>
      <link>https://forums.autodesk.com/t5/net-forum/2024-saveas-enotopenforwrite/m-p/11965440#M8807</link>
      <description>&lt;P&gt;I think that error occurs in other part of code (not in SaveAs).&amp;nbsp; Maybe in events which fired with SaveAs or&amp;nbsp;CloseAndDiscard methods.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 19:25:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/2024-saveas-enotopenforwrite/m-p/11965440#M8807</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2023-05-15T19:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: 2024 Saveas eNotOpenForWrite</title>
      <link>https://forums.autodesk.com/t5/net-forum/2024-saveas-enotopenforwrite/m-p/11966347#M8808</link>
      <description>&lt;P&gt;But the issue it it is working fine in older version than 2024.&lt;/P&gt;&lt;P&gt;is there any change in saveas method?&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 05:08:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/2024-saveas-enotopenforwrite/m-p/11966347#M8808</guid>
      <dc:creator>yoitsarun</dc:creator>
      <dc:date>2023-05-16T05:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: 2024 Saveas eNotOpenForWrite</title>
      <link>https://forums.autodesk.com/t5/net-forum/2024-saveas-enotopenforwrite/m-p/12050649#M8809</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027"&gt;@Alexander.Rivilis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm Having the same problem, and in the Visual Studio debugger it fails just after running the document.Database.SaveAs() method, and I don't have any event writed in my code for SaveAs.&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/435315"&gt;@yoitsarun&lt;/a&gt;&amp;nbsp;said the same code was working fine in older versions than 2024.&lt;/P&gt;&lt;P&gt;Is there any change that we should do with this method in the 2024 version?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 15:37:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/2024-saveas-enotopenforwrite/m-p/12050649#M8809</guid>
      <dc:creator>brandon_lara462TH</dc:creator>
      <dc:date>2023-06-21T15:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: 2024 Saveas eNotOpenForWrite</title>
      <link>https://forums.autodesk.com/t5/net-forum/2024-saveas-enotopenforwrite/m-p/12062144#M8810</link>
      <description>&lt;P&gt;I'm having the same problem in 2024 only. Even the try-catch method doesn't catch it, it just crashes. Any help is appreciated...&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 23:02:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/2024-saveas-enotopenforwrite/m-p/12062144#M8810</guid>
      <dc:creator>gsprink</dc:creator>
      <dc:date>2023-06-26T23:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: 2024 Saveas eNotOpenForWrite</title>
      <link>https://forums.autodesk.com/t5/net-forum/2024-saveas-enotopenforwrite/m-p/12252290#M8811</link>
      <description>&lt;P&gt;Hi I am also getting this error code in Civil 3d 2024. Did reinstall twice, it works for a while then I get this error message and the program crashes.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 01:00:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/2024-saveas-enotopenforwrite/m-p/12252290#M8811</guid>
      <dc:creator>Johann.Walters</dc:creator>
      <dc:date>2023-09-20T01:00:26Z</dc:date>
    </item>
  </channel>
</rss>

