<?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: WblockCloneObjects - bool deferTranslation in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/wblockcloneobjects-bool-defertranslation/m-p/3274647#M57936</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ObjectARX documentation (arxdoc.chm) explains this under the "AcDbDatabase::wblockCloneObjects" method :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I quote :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"When the objects to be cloned do not all have the same owner, then it is necessary to make up individual &lt;SPAN class="Element146"&gt;&lt;A href="mk:@MSITStore:C:\ObjectARX2012\docs\arxref.chm::/AcDbObjectIdArray.html" target="_blank"&gt;AcDbObjectIdArray&lt;/A&gt;&lt;/SPAN&gt; entities, each one containing all the objects with the same owner. The &lt;SPAN class="Element146"&gt;wblockCloneObjects()&lt;/SPAN&gt; method is then called once for each array, with the &lt;SPAN class="Element146"&gt;deferXlation&lt;/SPAN&gt; argument set to &lt;SPAN class="Element146"&gt;true&lt;/SPAN&gt; for all but the last call, so that ID translation will be done to complete the cloning."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, when you are using the wblockCloneObjects to clone objects that do not belong to the same owner, then it is better to defer the translation until all the grouped objects (belonging to the same owner) have been clones by separate calls to "wblockCloneObjects". The last call to the wblockCloneObjects will then set the "deferTranslation" to false to carry out the translation phase. During the translation phase, new objectId is provided for each of the clone objects and the IdMap becomes useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Dec 2011 04:15:13 GMT</pubDate>
    <dc:creator>Balaji_Ram</dc:creator>
    <dc:date>2011-12-27T04:15:13Z</dc:date>
    <item>
      <title>WblockCloneObjects - bool deferTranslation</title>
      <link>https://forums.autodesk.com/t5/net-forum/wblockcloneobjects-bool-defertranslation/m-p/3270127#M57935</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;&lt;STRONG&gt;WblockCloneObjects&lt;/STRONG&gt;, but I don't understand what the last parameter does:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;bool deferTranslation&lt;/EM&gt;&amp;nbsp;- Controls if object ids should be translated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What does it do? When should it be &lt;STRONG&gt;TRUE&lt;/STRONG&gt; and when should it be &lt;STRONG&gt;FALSE&lt;/STRONG&gt;? C&lt;/SPAN&gt;&lt;SPAN style="line-height: 13px;"&gt;an anyone explain or point me in the right direction?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 13px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2011 21:49:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wblockcloneobjects-bool-defertranslation/m-p/3270127#M57935</guid>
      <dc:creator>Ertqwa</dc:creator>
      <dc:date>2011-12-20T21:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: WblockCloneObjects - bool deferTranslation</title>
      <link>https://forums.autodesk.com/t5/net-forum/wblockcloneobjects-bool-defertranslation/m-p/3274647#M57936</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ObjectARX documentation (arxdoc.chm) explains this under the "AcDbDatabase::wblockCloneObjects" method :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I quote :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"When the objects to be cloned do not all have the same owner, then it is necessary to make up individual &lt;SPAN class="Element146"&gt;&lt;A href="mk:@MSITStore:C:\ObjectARX2012\docs\arxref.chm::/AcDbObjectIdArray.html" target="_blank"&gt;AcDbObjectIdArray&lt;/A&gt;&lt;/SPAN&gt; entities, each one containing all the objects with the same owner. The &lt;SPAN class="Element146"&gt;wblockCloneObjects()&lt;/SPAN&gt; method is then called once for each array, with the &lt;SPAN class="Element146"&gt;deferXlation&lt;/SPAN&gt; argument set to &lt;SPAN class="Element146"&gt;true&lt;/SPAN&gt; for all but the last call, so that ID translation will be done to complete the cloning."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, when you are using the wblockCloneObjects to clone objects that do not belong to the same owner, then it is better to defer the translation until all the grouped objects (belonging to the same owner) have been clones by separate calls to "wblockCloneObjects". The last call to the wblockCloneObjects will then set the "deferTranslation" to false to carry out the translation phase. During the translation phase, new objectId is provided for each of the clone objects and the IdMap becomes useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 04:15:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wblockcloneobjects-bool-defertranslation/m-p/3274647#M57936</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2011-12-27T04:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: WblockCloneObjects - bool deferTranslation</title>
      <link>https://forums.autodesk.com/t5/net-forum/wblockcloneobjects-bool-defertranslation/m-p/3274689#M57937</link>
      <description>&lt;P&gt;Sorry for offt-opic, Balaji&lt;/P&gt;&lt;P&gt;Here is a situation with one file where is two identical linetypes&lt;/P&gt;&lt;P&gt;with the same name and SHX&lt;/P&gt;&lt;P&gt;So this drawing won't to be copied using WBlockCloneObjects method&lt;/P&gt;&lt;P&gt;Purge, audit,recovery and rewriting this drawing&amp;nbsp;as dxf format -&lt;/P&gt;&lt;P&gt;all is with no luck&lt;/P&gt;&lt;P&gt;How to avoid this trouble?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 06:47:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/wblockcloneobjects-bool-defertranslation/m-p/3274689#M57937</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2011-12-27T06:47:44Z</dc:date>
    </item>
  </channel>
</rss>

