<?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 How to prevent: Open Drawing Errors Found in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-prevent-open-drawing-errors-found/m-p/5912508#M37888</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using c# to systematically go through the vault, download a .dwg, and update a BlockReference via bR.Id.SetAttribute("PARTNUMBER","xxxxxxxx"). The changes are succesfully made and its checked back into the vault, changes are there when I open the file back up and all is well, however, I recieve these two notifications upon openning the drawing and I am curious if we can eliminate one or both of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SecondError is more important to be removed than the first. They are labeled first and second simply due to the order that they appear when opening a drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Visual Studio 2015, AutoCAD Mechanical 2015, Autodesk Vault Professional R2&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;cLinville&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2015 19:55:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-17T19:55:19Z</dc:date>
    <item>
      <title>How to prevent: Open Drawing Errors Found</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-prevent-open-drawing-errors-found/m-p/5912508#M37888</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using c# to systematically go through the vault, download a .dwg, and update a BlockReference via bR.Id.SetAttribute("PARTNUMBER","xxxxxxxx"). The changes are succesfully made and its checked back into the vault, changes are there when I open the file back up and all is well, however, I recieve these two notifications upon openning the drawing and I am curious if we can eliminate one or both of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SecondError is more important to be removed than the first. They are labeled first and second simply due to the order that they appear when opening a drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Visual Studio 2015, AutoCAD Mechanical 2015, Autodesk Vault Professional R2&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;cLinville&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 19:55:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-prevent-open-drawing-errors-found/m-p/5912508#M37888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-17T19:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent: Open Drawing Errors Found</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-prevent-open-drawing-errors-found/m-p/5912986#M37889</link>
      <description>&lt;P&gt;&lt;FONT color="#333333"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333333"&gt;As for the first erros message, you can set a system variable: DWGCHECK, set it to 2, to avoid the anoying message. Also you can also take some action before openning the file checking&amp;nbsp;&lt;STRONG&gt;DwgFileWasSavedByAutodeskSoftware &lt;/STRONG&gt;property of the database.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the second one, i have no idea, may be you can run an audit before saving the file, so the next time the file will be ok.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gaston Nunez&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 04:05:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-prevent-open-drawing-errors-found/m-p/5912986#M37889</guid>
      <dc:creator>hgasty1001</dc:creator>
      <dc:date>2015-11-18T04:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent: Open Drawing Errors Found</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-prevent-open-drawing-errors-found/m-p/5913589#M37890</link>
      <description>&lt;P&gt;Hello I found that if I used&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;using (Database db = new Database(false, true))
{}&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Instead of using&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;using (var dockLock = doc.LockDocument())
                    using (var db = doc.Database)
                    {}&lt;/PRE&gt;&lt;P&gt;it prevented the second dialog box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;cLinville&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 13:25:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-prevent-open-drawing-errors-found/m-p/5913589#M37890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-18T13:25:39Z</dc:date>
    </item>
  </channel>
</rss>

