<?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: Read From/Write To AutoCAD Drawings that are not open in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/read-from-write-to-autocad-drawings-that-are-not-open/m-p/8858859#M22045</link>
    <description>&lt;P&gt;With AutoCAD .NET APIs, you can open (in AutoCAD process' memory, not visually in AutoCAD Ediotr) a drawing file as side database and then manipulate the data in the database. as long as the code does not use the functionalities related to AutoCAD editor. Something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;using (var db=new Datbase(true, false))&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; db.ReadDwgFromFile ("{file name]", ..., ...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; // you may or may not want to set this DB as WorkingDatabase here&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; DoSomethingToTheDb(db);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; // You may or may not want to save changes made to the DB (Dwg File, eventaully)&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2019 21:57:50 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2019-06-18T21:57:50Z</dc:date>
    <item>
      <title>Read From/Write To AutoCAD Drawings that are not open</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-from-write-to-autocad-drawings-that-are-not-open/m-p/8858816#M22044</link>
      <description>&lt;P&gt;Some of the standard autocad commands edit or read information from drawings that are not open. Is there any way to do this with autocad api? I have many commands that simply read values from a couple of blocks. It would be nice to not have to open the drawing each time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, to do this, does one need to be able to decipher the machine language in a .dwg notepad file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 21:36:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-from-write-to-autocad-drawings-that-are-not-open/m-p/8858816#M22044</guid>
      <dc:creator>mcoH3VZV</dc:creator>
      <dc:date>2019-06-18T21:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read From/Write To AutoCAD Drawings that are not open</title>
      <link>https://forums.autodesk.com/t5/net-forum/read-from-write-to-autocad-drawings-that-are-not-open/m-p/8858859#M22045</link>
      <description>&lt;P&gt;With AutoCAD .NET APIs, you can open (in AutoCAD process' memory, not visually in AutoCAD Ediotr) a drawing file as side database and then manipulate the data in the database. as long as the code does not use the functionalities related to AutoCAD editor. Something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;using (var db=new Datbase(true, false))&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; db.ReadDwgFromFile ("{file name]", ..., ...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; // you may or may not want to set this DB as WorkingDatabase here&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; DoSomethingToTheDb(db);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; // You may or may not want to save changes made to the DB (Dwg File, eventaully)&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 21:57:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/read-from-write-to-autocad-drawings-that-are-not-open/m-p/8858859#M22045</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2019-06-18T21:57:50Z</dc:date>
    </item>
  </channel>
</rss>

