<?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: how to copy a block reference and maintain its original insertion point? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-copy-a-block-reference-and-maintain-its-original/m-p/9154247#M20783</link>
    <description>&lt;P&gt;I just want to make sure that the block reference's insertion point is at the origin(0,0,0) of the new block definition. And the block reference of the new block defintion is on the original block reference position.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 07:46:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-11-19T07:46:56Z</dc:date>
    <item>
      <title>how to copy a block reference and maintain its original insertion point?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-copy-a-block-reference-and-maintain-its-original/m-p/9153990#M20781</link>
      <description>&lt;P&gt;I try to deepclone a block reference and append it to a new block. When I append the new block reference to the model space, I found that the insertion point become the new Point3d(0,0,0). But the new block reference is in the same position in the model space&amp;nbsp; as the original one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;IdMapping idMapping = new IdMapping();
db.DeepCloneObjects(objectIdsToBeInsertedToANewBlock,newBlockId, idMapping, false);

BlockReference br = new BlockReference(new Point3d(0,0,0), newBlockId);
modelSpace.AppendEntity(br);&lt;/PRE&gt;&lt;P&gt;When I try to change the insertion point of the new block reference to the origin, the new block reference is moved to the origin.&lt;/P&gt;&lt;P&gt;I want to keep the insertion point and place in the&amp;nbsp; model space of the new block reference as the same as the original one.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 02:36:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-copy-a-block-reference-and-maintain-its-original/m-p/9153990#M20781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-19T02:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy a block reference and maintain its original insertion point?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-copy-a-block-reference-and-maintain-its-original/m-p/9154119#M20782</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I try to deepclone a block reference and append it to a new block.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What about simply insert the block reference in the new block definition?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 05:38:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-copy-a-block-reference-and-maintain-its-original/m-p/9154119#M20782</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-11-19T05:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy a block reference and maintain its original insertion point?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-copy-a-block-reference-and-maintain-its-original/m-p/9154247#M20783</link>
      <description>&lt;P&gt;I just want to make sure that the block reference's insertion point is at the origin(0,0,0) of the new block definition. And the block reference of the new block defintion is on the original block reference position.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 07:46:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-copy-a-block-reference-and-maintain-its-original/m-p/9154247#M20783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-19T07:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy a block reference and maintain its original insertion point?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-copy-a-block-reference-and-maintain-its-original/m-p/9160346#M20784</link>
      <description>It's not clear to me exactly what you are doing and what is actually happening vs. what you want to happen.  Perhaps it would help if you could provide a more complete code sample of what you are doing and some screen shots of what happens and what you want to happen.</description>
      <pubDate>Thu, 21 Nov 2019 18:18:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-copy-a-block-reference-and-maintain-its-original/m-p/9160346#M20784</guid>
      <dc:creator>artc2</dc:creator>
      <dc:date>2019-11-21T18:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to copy a block reference and maintain its original insertion point?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-copy-a-block-reference-and-maintain-its-original/m-p/9161550#M20785</link>
      <description>&lt;P&gt;I have already solved this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use BlockTableRecord.Origin to control the point (in MCS) to insert the block record.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User the 1st parameter of the constructor new BlockReference() to control the insertion point in WCS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the default value of BlockTableRecord.Origin is (0,0,0) in MCS&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 09:27:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-copy-a-block-reference-and-maintain-its-original/m-p/9161550#M20785</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-22T09:27:27Z</dc:date>
    </item>
  </channel>
</rss>

