<?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 : ReadDwgFile - side database correct useage in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/readdwgfile-side-database-correct-useage/m-p/5445257#M41924</link>
    <description>&lt;P&gt;Setting the&amp;nbsp;HostApplicationServices.WorkingDatabase seems to be needed for some operations. From the docs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Many areas of ObjectDBX code require a database to query for information. For example, if you make an Entity in memory, it may require default information from a database. It will take that information from the working database.&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Tue, 16 Dec 2014 18:58:23 GMT</pubDate>
    <dc:creator>FRFR1426</dc:creator>
    <dc:date>2014-12-16T18:58:23Z</dc:date>
    <item>
      <title>ReadDwgFile - side database correct useage</title>
      <link>https://forums.autodesk.com/t5/net-forum/readdwgfile-side-database-correct-useage/m-p/5444657#M41923</link>
      <description>&lt;P&gt;All, I have struck some seemingly contradictory information and would appreciate a comment on the correct method to access a side database (dwg), edit, and save to the same name. I have been doing this for ages but now wonder if correctly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// Fenton version &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;public&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;static&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;void&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; DoSomeWorkExt01(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;string&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; DwgToProcess)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;using&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Database&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; db = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;new&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Database&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;true&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;db.ReadDwgFile(DwgToProcess, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;FileOpenMode&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.OpenForReadAndReadShare, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;""&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// closing the input makes sure the whole dwg is read from disk&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// it also closes the file so you can SaveAs the same name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;db.CloseInput(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;true&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// store the current working database, to reset&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Database&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; currDb = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;HostApplicationServices&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.WorkingDatabase;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// set working database&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;HostApplicationServices&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.WorkingDatabase = db;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;{Do Some Work}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;db.SaveAs(DwgToProcess, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;DwgVersion&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Current);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// reset the working database&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;HostApplicationServices&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.WorkingDatabase = currDb;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;// my code currently&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;public&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;static&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;void&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; DoSomeWorkExt02(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;string&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; DwgToProcess)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;using&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Database&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; db = &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;new&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;Database&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;false&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;db.ReadDwgFile(DwgToProcess, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;FileOpenMode&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.OpenForReadAndWriteNoShare, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;true&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;""&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #008000; font-family: Consolas; font-size: small;"&gt;{Do Some Work}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;db.SaveAs(DwgToProcess, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;DwgVersion&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.Current);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Dale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2014 11:33:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/readdwgfile-side-database-correct-useage/m-p/5444657#M41923</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2014-12-16T11:33:15Z</dc:date>
    </item>
    <item>
      <title>Re : ReadDwgFile - side database correct useage</title>
      <link>https://forums.autodesk.com/t5/net-forum/readdwgfile-side-database-correct-useage/m-p/5445257#M41924</link>
      <description>&lt;P&gt;Setting the&amp;nbsp;HostApplicationServices.WorkingDatabase seems to be needed for some operations. From the docs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Many areas of ObjectDBX code require a database to query for information. For example, if you make an Entity in memory, it may require default information from a database. It will take that information from the working database.&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 16 Dec 2014 18:58:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/readdwgfile-side-database-correct-useage/m-p/5445257#M41924</guid>
      <dc:creator>FRFR1426</dc:creator>
      <dc:date>2014-12-16T18:58:23Z</dc:date>
    </item>
    <item>
      <title>Re : ReadDwgFile - side database correct useage</title>
      <link>https://forums.autodesk.com/t5/net-forum/readdwgfile-side-database-correct-useage/m-p/5447115#M41925</link>
      <description>Thanks for the reply. I have been trialing Fenton's code and so far so good. I was looking for a single, all cases version. His original code referred only to attaching Xrefs, but it does seem the safer process for all occasions. Dale</description>
      <pubDate>Thu, 18 Dec 2014 07:18:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/readdwgfile-side-database-correct-useage/m-p/5447115#M41925</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2014-12-18T07:18:56Z</dc:date>
    </item>
  </channel>
</rss>

