<?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: INSERT DYNAMIC BLOCKS IS REALLY SLOW in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/insert-dynamic-blocks-is-really-slow/m-p/5427483#M11724</link>
    <description>&lt;P&gt;I can't tell you why it's so slow, but considering the amount of resources required for each block, it's not altogether surprising that performance degrades quickly. My advice is to avoid dynamic blocks like the plague.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Nov 2014 16:50:56 GMT</pubDate>
    <dc:creator>owenwengerd</dc:creator>
    <dc:date>2014-11-28T16:50:56Z</dc:date>
    <item>
      <title>INSERT DYNAMIC BLOCKS IS REALLY SLOW</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/insert-dynamic-blocks-is-really-slow/m-p/5427379#M11723</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have Created a Command Arx (AUTOCAD 2012) that performs the Following steps :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- filters some lines on some layers&lt;/P&gt;&lt;P&gt;- substitutes the lines with dynamic blocks with only one parameter stretch (lenght line = stretch parameter)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After about 200 "overrides" the system begins to slow down and takes about 10 seconds to insert block and set parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tryed to use addBlockToDatabase function, acedcommand INSERT (external and internal path) but it seems there's no way to arrive at the end of the overriding operation (about 1000 lines)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What can I do?&lt;/P&gt;&lt;P&gt;Why is Autocad so slow with dyn blocks?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2014 15:09:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/insert-dynamic-blocks-is-really-slow/m-p/5427379#M11723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-28T15:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT DYNAMIC BLOCKS IS REALLY SLOW</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/insert-dynamic-blocks-is-really-slow/m-p/5427483#M11724</link>
      <description>&lt;P&gt;I can't tell you why it's so slow, but considering the amount of resources required for each block, it's not altogether surprising that performance degrades quickly. My advice is to avoid dynamic blocks like the plague.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2014 16:50:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/insert-dynamic-blocks-is-really-slow/m-p/5427483#M11724</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2014-11-28T16:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT DYNAMIC BLOCKS IS REALLY SLOW</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/insert-dynamic-blocks-is-really-slow/m-p/5427792#M11725</link>
      <description>&lt;P&gt;Owen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you're completely right: avoid dyn blocks &lt;SPAN&gt;when you have to make many many inserts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cons:&lt;/P&gt;&lt;P&gt;The size of the drawing increases dramatically.&lt;/P&gt;&lt;P&gt;Sometimes Autocad runs out of memory.&lt;/P&gt;&lt;P&gt;After some inserts, the performance degrades dramatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, in my case I was able to replace the dynamic block with a X scaled block.&lt;/P&gt;&lt;P&gt;But, what if you must use dynamic blocks?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Nov 2014 07:19:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/insert-dynamic-blocks-is-really-slow/m-p/5427792#M11725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-29T07:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT DYNAMIC BLOCKS IS REALLY SLOW</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/insert-dynamic-blocks-is-really-slow/m-p/7446984#M11726</link>
      <description>&lt;P&gt;Hi @Anonymous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is never the need of using Dyn blocks.&lt;/P&gt;
&lt;P&gt;Make a good library and depending on how you work toolpallets / toolbars or legend sheets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 07:46:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/insert-dynamic-blocks-is-really-slow/m-p/7446984#M11726</guid>
      <dc:creator>DGRL</dc:creator>
      <dc:date>2017-10-10T07:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT DYNAMIC BLOCKS IS REALLY SLOW</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/insert-dynamic-blocks-is-really-slow/m-p/7447074#M11727</link>
      <description>&lt;P&gt;I don't agree completely.&lt;/P&gt;
&lt;P&gt;Dynamic blocks can be quite handy in many cases where scaling a static BREF wouldn't be appropriate.&lt;/P&gt;
&lt;P&gt;If you are inserting multiple dynamic blocks with the same parameter set, AutoCAD will only create one block instance per parameter set. So I think it is not too inefficient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other hand: You are completely right to avoid dynamic blocks for just one simple line and for cases where scaled static BREFs are appropriate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding performance:&lt;/P&gt;
&lt;P&gt;How do you create instances of the dynamic BREF? Using INSERT 200 times is really inefficient if you already have the block definition inside your &lt;FONT face="courier new,courier"&gt;AcDbDatabase&lt;/FONT&gt;. Better create an &lt;FONT face="courier new,courier"&gt;AcDbBlockReference&lt;/FONT&gt; to the dynamic BTR and modify its dynamic parameters. See classes &lt;FONT face="courier new,courier"&gt;AcDbDynBlockReference&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;AcDbDynBlockReferencePropertyArray&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 08:28:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/insert-dynamic-blocks-is-really-slow/m-p/7447074#M11727</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2017-10-10T08:28:34Z</dc:date>
    </item>
  </channel>
</rss>

