<?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: Database.Filename return autosave filename .sv$ in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/database-filename-return-autosave-filename-sv/m-p/4402749#M47846</link>
    <description>&lt;P&gt;No bug... the database is after the autosave associated to the temp file... so the answer from the database is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should use the name of the document instead. This would give you the desired Information.&lt;/P&gt;&lt;PRE&gt;public static string Name
{
        get { return Document.Name; }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2013 09:18:19 GMT</pubDate>
    <dc:creator>Matti72</dc:creator>
    <dc:date>2013-09-06T09:18:19Z</dc:date>
    <item>
      <title>Database.Filename return autosave filename .sv$</title>
      <link>https://forums.autodesk.com/t5/net-forum/database-filename-return-autosave-filename-sv/m-p/4401703#M47845</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; here is my code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;public static class Active
{
    public static Document Document
    {
        get { return Application.DocumentManager.MdiActiveDocument; }
    }

    public static Database Database
    {
        get { return Document.Database; }
    }

    public static string Name
    {
        get { return Database.Filename; }
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Active.Name some return the autosave filename, e.g.&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Documents and Settings\Davisas\local settings\temp\TDB0157-006A-FP00_1_1_1030.sv$&lt;/P&gt;&lt;P&gt;the correct one should be&lt;/P&gt;&lt;P&gt;C:\Documents and Settings\Davisas\local settings\temp\TDB0157-006A-FP00.dwg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a bug? how to avoid it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;Wes&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2013 19:12:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/database-filename-return-autosave-filename-sv/m-p/4401703#M47845</guid>
      <dc:creator>wesbird</dc:creator>
      <dc:date>2013-09-05T19:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Database.Filename return autosave filename .sv$</title>
      <link>https://forums.autodesk.com/t5/net-forum/database-filename-return-autosave-filename-sv/m-p/4402749#M47846</link>
      <description>&lt;P&gt;No bug... the database is after the autosave associated to the temp file... so the answer from the database is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should use the name of the document instead. This would give you the desired Information.&lt;/P&gt;&lt;PRE&gt;public static string Name
{
        get { return Document.Name; }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2013 09:18:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/database-filename-return-autosave-filename-sv/m-p/4402749#M47846</guid>
      <dc:creator>Matti72</dc:creator>
      <dc:date>2013-09-06T09:18:19Z</dc:date>
    </item>
  </channel>
</rss>

