<?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: Copy Linetype from Another Database in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/4343739#M80784</link>
    <description>Yes, I am using drawing templates to load all the stuff for my current drawing.&lt;BR /&gt;Actually, now I have switched to loading line types from file, but it'd be good for me to load from *.dwt.</description>
    <pubDate>Fri, 26 Jul 2013 01:38:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-07-26T01:38:17Z</dc:date>
    <item>
      <title>Copy Linetype from Another Database</title>
      <link>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/1739610#M80779</link>
      <description>Here is my situation:&lt;BR /&gt;
I have 1 drawing open, I have another drawings Database open&lt;BR /&gt;
I have found the LinetypeTableRecord (in the Database) of the line type I want to copy to the open drawing.&lt;BR /&gt;
&lt;BR /&gt;
The Question:&lt;BR /&gt;
How do I copy a LinetypeTableRecord from one drawing to another?&lt;BR /&gt;
any examples would be helpfull.</description>
      <pubDate>Fri, 18 Aug 2006 02:46:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/1739610#M80779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-18T02:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Linetype from Another Database</title>
      <link>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/1739611#M80780</link>
      <description>Ok, here's the track I am on now. Im not sure its the right track mind you!&lt;BR /&gt;
&lt;BR /&gt;
I think I have to use  DeepClone, so here is what I tried:&lt;BR /&gt;
&lt;BR /&gt;
Database db = HostApplicationServices.WorkingDatabse;&lt;BR /&gt;
&lt;BR /&gt;
ObjectIdCollection vObjs = newObjectIdCollection();&lt;BR /&gt;
vObjs(0) = Object Id of linetype I want to copy&lt;BR /&gt;
&lt;BR /&gt;
db.DeepCloneObjects(vObjs,?????,false);&lt;BR /&gt;
&lt;BR /&gt;
Now IF I am on the right track what goes where the ????? are?&lt;BR /&gt;
The help says ObjectId is required there but ID of what? The LineTypeTable? (I tried that and it didn't work).</description>
      <pubDate>Fri, 18 Aug 2006 11:50:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/1739611#M80780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-18T11:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Linetype from Another Database</title>
      <link>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/1739612#M80781</link>
      <description>db.WblockCloneObjects(...)</description>
      <pubDate>Fri, 18 Aug 2006 13:40:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/1739612#M80781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-08-18T13:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Linetype from Another Database</title>
      <link>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/4341166#M80782</link>
      <description>&lt;P&gt;I am using Database.WblockCloneObjects() to copy linetypes from external drawing. It works fine if linetype doesn't have a reference to complied shape file (.shx). If it does, linetypes are copied without shape-referenced part (e.g. geometries like rounds).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any solution?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2013 10:48:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/4341166#M80782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-24T10:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Linetype from Another Database</title>
      <link>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/4343649#M80783</link>
      <description>&lt;P&gt;Is there a reason why you can't just use LoadLinetype()?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://through-the-interface.typepad.com/through_the_interface/2010/03/loading-multiple-linetypes-into-autocad-using-net.html" target="_blank"&gt;http://through-the-interface.typepad.com/through_the_interface/2010/03/loading-multiple-linetypes-into-autocad-using-net.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2013 22:12:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/4343649#M80783</guid>
      <dc:creator>fenton_webb</dc:creator>
      <dc:date>2013-07-25T22:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Linetype from Another Database</title>
      <link>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/4343739#M80784</link>
      <description>Yes, I am using drawing templates to load all the stuff for my current drawing.&lt;BR /&gt;Actually, now I have switched to loading line types from file, but it'd be good for me to load from *.dwt.</description>
      <pubDate>Fri, 26 Jul 2013 01:38:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/4343739#M80784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-26T01:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Linetype from Another Database</title>
      <link>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/4344908#M80785</link>
      <description>&lt;P&gt;Just use Database.Insert("dwtFile.dwt",,,)&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 18:10:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/4344908#M80785</guid>
      <dc:creator>fenton_webb</dc:creator>
      <dc:date>2013-07-26T18:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Linetype from Another Database</title>
      <link>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/4345776#M80786</link>
      <description>&lt;P&gt;Are you shure about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are three overloads and only two of them accept string parameters, which are blockName from another database, as I understand:&lt;/P&gt;&lt;P&gt;public void Insert(Matrix3d transform, Database dataBase, bool preserveSourceDatabase);&lt;BR /&gt;public ObjectId Insert(string blockName, Database dataBase, bool preserveSourceDatabase);&lt;BR /&gt;public ObjectId Insert(string sourceBlockName, string destinationBlockName, Database dataBase, bool preserveSourceDatabase);&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2013 02:02:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/4345776#M80786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-29T02:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Linetype from Another Database</title>
      <link>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/4346503#M80787</link>
      <description>&lt;P&gt;Something like this &lt;A href="http://forums.augi.com/showthread.php?145986-Insert-External-DWG-file-with-attributes" target="_blank"&gt;http://forums.augi.com/showthread.php?145986-Insert-External-DWG-file-with-attributes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2013 16:04:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/copy-linetype-from-another-database/m-p/4346503#M80787</guid>
      <dc:creator>fenton_webb</dc:creator>
      <dc:date>2013-07-29T16:04:08Z</dc:date>
    </item>
  </channel>
</rss>

