<?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 Cloning a database from an existing database and retaining dimension styles etc in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/cloning-a-database-from-an-existing-database-and-retaining/m-p/8992005#M21423</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to copy certain objects from my current drawing into a new one. I am using the code contained here: &lt;A href="https://adndevblog.typepad.com/autocad/2012/09/copying-deepcloning-from-one-drawing-to-another-using-net.html" target="_blank"&gt;https://adndevblog.typepad.com/autocad/2012/09/copying-deepcloning-from-one-drawing-to-another-using-net.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I'm using WblockCloneObjects to copy objects from one drawing to another. But the problem is that the new drawing does not retain all the items contained in the source database: e.g. dimension styles, styling, layers, certain block definitions etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to ensure that all of those items are also cloned? In other words, I want the new database exactly the same as the old, except for what appears in the model space - and I have object ids for those items which I want in the model space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice would be much appreciated. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2019 07:41:42 GMT</pubDate>
    <dc:creator>BKSpurgeon</dc:creator>
    <dc:date>2019-08-28T07:41:42Z</dc:date>
    <item>
      <title>Cloning a database from an existing database and retaining dimension styles etc</title>
      <link>https://forums.autodesk.com/t5/net-forum/cloning-a-database-from-an-existing-database-and-retaining/m-p/8992005#M21423</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to copy certain objects from my current drawing into a new one. I am using the code contained here: &lt;A href="https://adndevblog.typepad.com/autocad/2012/09/copying-deepcloning-from-one-drawing-to-another-using-net.html" target="_blank"&gt;https://adndevblog.typepad.com/autocad/2012/09/copying-deepcloning-from-one-drawing-to-another-using-net.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I'm using WblockCloneObjects to copy objects from one drawing to another. But the problem is that the new drawing does not retain all the items contained in the source database: e.g. dimension styles, styling, layers, certain block definitions etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to ensure that all of those items are also cloned? In other words, I want the new database exactly the same as the old, except for what appears in the model space - and I have object ids for those items which I want in the model space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice would be much appreciated. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 07:41:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cloning-a-database-from-an-existing-database-and-retaining/m-p/8992005#M21423</guid>
      <dc:creator>BKSpurgeon</dc:creator>
      <dc:date>2019-08-28T07:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning a database from an existing database and retaining dimension styles</title>
      <link>https://forums.autodesk.com/t5/net-forum/cloning-a-database-from-an-existing-database-and-retaining/m-p/8992028#M21424</link>
      <description>&lt;P&gt;It is look like easy to duplicate source dwg-file, open it and erase all entities in ModelSpace.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 08:01:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cloning-a-database-from-an-existing-database-and-retaining/m-p/8992028#M21424</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-08-28T08:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning a database from an existing database and retaining dimension styles</title>
      <link>https://forums.autodesk.com/t5/net-forum/cloning-a-database-from-an-existing-database-and-retaining/m-p/8992113#M21425</link>
      <description>&lt;P&gt;If you absolutely want to use WblockCloneObjects&amp;nbsp; (even the route suggested by &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/481027"&gt;@Alexander.Rivilis&lt;/a&gt; shuld be much mor simple), you have to clone the contents of all tables in the source file to the corresponding table in the destination file.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 08:44:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/cloning-a-database-from-an-existing-database-and-retaining/m-p/8992113#M21425</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-08-28T08:44:35Z</dc:date>
    </item>
  </channel>
</rss>

