<?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: Replace Block Record in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/replace-block-record/m-p/3567222#M54080</link>
    <description>&lt;P&gt;You're doing a lot of unneccessary work there, with the copying back and forth to a new database.&amp;nbsp; I have a working routine that goes like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Open the old BlockTableRecord&lt;/P&gt;&lt;P&gt;2. Get the BlockReferenceIds from the BTR&lt;BR /&gt;3. Rename the old BTR (I assume you want the new block to have the same name, or this isn't neccessary)&lt;/P&gt;&lt;P&gt;4. Create the new BlockTableRecord.&lt;/P&gt;&lt;P&gt;5.&amp;nbsp;Loop through the BlockReferenceIds and point the BlockTableRecord property to the new ID, and check for attribute aditions or removals.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Aug 2012 19:28:56 GMT</pubDate>
    <dc:creator>chiefbraincloud</dc:creator>
    <dc:date>2012-08-06T19:28:56Z</dc:date>
    <item>
      <title>Replace Block Record</title>
      <link>https://forums.autodesk.com/t5/net-forum/replace-block-record/m-p/3566644#M54078</link>
      <description>&lt;P&gt;Hi all! I look for answers on my question 'How I can replace or redefine block record?'.&lt;/P&gt;&lt;P&gt;I tried the following:&lt;/P&gt;&lt;P&gt;1. Get all the block references&lt;/P&gt;&lt;P&gt;2. Clone it&lt;/P&gt;&lt;P&gt;3. Save to new DateBase&lt;/P&gt;&lt;P&gt;4. Erase old Block REferences and Block Record&lt;/P&gt;&lt;P&gt;5. Copy block references from new DataBase&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it doesn't work. Do you have any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. If you wаnt, then I can write some code&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2012 13:50:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/replace-block-record/m-p/3566644#M54078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-06T13:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Block Record</title>
      <link>https://forums.autodesk.com/t5/net-forum/replace-block-record/m-p/3567046#M54079</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do You mean with "&lt;SPAN&gt;But it doesn't work"?, you have a workflow with 5 steps, in which one the program fails?, and yes, please post the relevant code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Gaston Nunez&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2012 17:26:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/replace-block-record/m-p/3567046#M54079</guid>
      <dc:creator>hgasty1001</dc:creator>
      <dc:date>2012-08-06T17:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Block Record</title>
      <link>https://forums.autodesk.com/t5/net-forum/replace-block-record/m-p/3567222#M54080</link>
      <description>&lt;P&gt;You're doing a lot of unneccessary work there, with the copying back and forth to a new database.&amp;nbsp; I have a working routine that goes like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Open the old BlockTableRecord&lt;/P&gt;&lt;P&gt;2. Get the BlockReferenceIds from the BTR&lt;BR /&gt;3. Rename the old BTR (I assume you want the new block to have the same name, or this isn't neccessary)&lt;/P&gt;&lt;P&gt;4. Create the new BlockTableRecord.&lt;/P&gt;&lt;P&gt;5.&amp;nbsp;Loop through the BlockReferenceIds and point the BlockTableRecord property to the new ID, and check for attribute aditions or removals.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2012 19:28:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/replace-block-record/m-p/3567222#M54080</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2012-08-06T19:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Block Record</title>
      <link>https://forums.autodesk.com/t5/net-forum/replace-block-record/m-p/3567748#M54081</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2012 06:03:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/replace-block-record/m-p/3567748#M54081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-07T06:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Block Record</title>
      <link>https://forums.autodesk.com/t5/net-forum/replace-block-record/m-p/5827104#M54082</link>
      <description>&lt;P&gt;Any chance of getting the code for this?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 08:46:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/replace-block-record/m-p/5827104#M54082</guid>
      <dc:creator>jokiller70</dc:creator>
      <dc:date>2015-09-22T08:46:18Z</dc:date>
    </item>
  </channel>
</rss>

