<?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: Parallel read from .NET in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6406338#M35650</link>
    <description>&lt;P&gt;That would require changing the entire drawing database structure, as well as everything that interfaces with it.&amp;nbsp; Effectively that's a ground-up redesign of the entire program (short of the UI layer, anyways).&amp;nbsp; That's a huge investment for not much return, as most either don't have to deal with that much data&amp;nbsp;and the few who&amp;nbsp;do structure it in a more efficient manner.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That would also render all existing DWG files unreadable from the updated version and vice-versa.&amp;nbsp; That goes against one the strongest points of AutoCAD - the forward, (and to a certain extend, backwards)&amp;nbsp;compatibility of DWG file content.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2016 16:02:30 GMT</pubDate>
    <dc:creator>dgorsman</dc:creator>
    <dc:date>2016-06-27T16:02:30Z</dc:date>
    <item>
      <title>Parallel read from .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6397148#M35645</link>
      <description>How do I read all objects in modelspace using parallel.foreach() in .NET? I use Visual Basic .NET, but a C# answer is ok. I tried some methods, but the code hangs, and it may be that Autocad needs some specific way to read the objects in parallel, so that's why I ask. I do not need to make any modifications to modelspace objects. Just read their properties (like cordinates and layer names objects names). I have an autocad 2013 file with hundred of thousands of objects in modelspace, and I need to find all polylines from a specific layer, to get their coordinates. A single threaded code works, but is unbearably slow, and I have many processors idling, so I want to use parallel code.</description>
      <pubDate>Wed, 22 Jun 2016 00:49:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6397148#M35645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-22T00:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel read from .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6398199#M35646</link>
      <description>&lt;P&gt;There is no parallel processing in AutoCAD.&amp;nbsp; For better performance I would first suggest better data management ie. more drawings with fewer objects per drawing - that's better for both automation and users.&amp;nbsp; Maybe there is some loop optimization that can be done as well, but without knowing how you are looping over the model space objects its hard to tell.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 14:52:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6398199#M35646</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2016-06-22T14:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel read from .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6399483#M35647</link>
      <description>As dgorsman states, it's hard to diagnose without seeing your code. From the example you give (finding polylines on a specific layer), it would be much faster to use selection filters rather than looping every object.&lt;BR /&gt;&lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-NET/files/GUID-BE8B5EE4-9B5A-4D1F-B2D8-7DC013BFC6C0-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-NET/files/GUID-BE8B5EE4-9B5A-4D1F-B2D8-7DC013BFC6C0-htm.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Jun 2016 03:22:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6399483#M35647</guid>
      <dc:creator>jabowabo</dc:creator>
      <dc:date>2016-06-23T03:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel read from .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6404428#M35648</link>
      <description>&lt;P&gt;That's so depressing. Multicore desktop processors are more than a decade old.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk released more than 10 versions of Autocad in between. Is time to get up to the times, Autodesk!&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2016 03:18:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6404428#M35648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-26T03:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel read from .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6404429#M35649</link>
      <description>&lt;P&gt;Thanks Jabowabo. I will try this way.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2016 03:20:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6404429#M35649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-26T03:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel read from .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6406338#M35650</link>
      <description>&lt;P&gt;That would require changing the entire drawing database structure, as well as everything that interfaces with it.&amp;nbsp; Effectively that's a ground-up redesign of the entire program (short of the UI layer, anyways).&amp;nbsp; That's a huge investment for not much return, as most either don't have to deal with that much data&amp;nbsp;and the few who&amp;nbsp;do structure it in a more efficient manner.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That would also render all existing DWG files unreadable from the updated version and vice-versa.&amp;nbsp; That goes against one the strongest points of AutoCAD - the forward, (and to a certain extend, backwards)&amp;nbsp;compatibility of DWG file content.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 16:02:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6406338#M35650</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2016-06-27T16:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel read from .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6407312#M35651</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="username_area"&gt;&lt;SPAN class=""&gt;&lt;A id="link_7408ec15c13709" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3882832" target="_self"&gt;susiloxuc&lt;/A&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&lt;SPAN class=""&gt;You may find that investing a little time in LINQ to access and mine into the database will be worth your while ...&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&lt;SPAN class=""&gt;particularly for something a simple as this &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&lt;SPAN class=""&gt;[quote] ...&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I need to find all polylines from a specific layer ... [/quote]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;added:&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&lt;A href="http://aucache.autodesk.com/au2012/sessionsFiles/1923/2638/handout_1923_CP1923.pdf" target="_blank"&gt;http://aucache.autodesk.com/au2012/sessionsFiles/1923/2638/handout_1923_CP1923.pdf&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&lt;A href="http://through-the-interface.typepad.com/through_the_interface/2016/02/sorting-lists-of-autocad-objects-using-linq-part-3.html" target="_blank"&gt;http://through-the-interface.typepad.com/through_the_interface/2016/02/sorting-lists-of-autocad-objects-using-linq-part-3.html&amp;nbsp;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&lt;A href="http://drive-cad-with-code.blogspot.com.au/2011/04/tips-of-using-linq-in-autocad-net.html" target="_blank"&gt;http://drive-cad-with-code.blogspot.com.au/2011/04/tips-of-using-linq-in-autocad-net.html&amp;nbsp;&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;or preferably, look for any of the AutoDesk AU lectures by&amp;nbsp;Scott McFarlane.&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&lt;A href="http://au.autodesk.com/au-online/classes-on-demand/search?full-text=Scott+McFarlane" target="_blank"&gt;http://au.autodesk.com/au-online/classes-on-demand/search?full-text=Scott+McFarlane&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Jun 2016 01:49:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6407312#M35651</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2016-06-28T01:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel read from .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6410406#M35652</link>
      <description>&lt;P&gt;Tanks KerryBrown&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 12:20:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6410406#M35652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-29T12:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel read from .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6411866#M35653</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You're welcome, and I appreciate the comment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 01:10:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6411866#M35653</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2016-06-30T01:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel read from .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6412537#M35654</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/253793"&gt;@dgorsman﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a programmer, I understand. I had been there before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yet, it will need to be done soon or later. The code shouldn't depend on a specific implementation of a database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last processor I bought for my home (not work) was an i7-920. Is already an antique. I didn't updated because the faster &lt;STRONG&gt;desktop&lt;/STRONG&gt; processor sold today is barely 30% faster per thread (&lt;EM&gt;i7&lt;/EM&gt;&lt;SPAN&gt;-6950X)&lt;/SPAN&gt;. But it has 10 cores instead of 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The number of cores rises slowly, but much faster than single threaded performance.If Autocad does not embrace multicore,&amp;nbsp;his performance will freeze in time.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 12:34:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/6412537#M35654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-30T12:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel read from .NET</title>
      <link>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/10737495#M35655</link>
      <description>&lt;P&gt;Hello from the future! Guess what? Autocad is still as it was back then! That is singlethreaded. And I guess it will stay that way untill it comes up against a much better competitor. Which isn't happening in foreseeable future.&lt;/P&gt;&lt;P&gt;The sad reality is that outdated, underperforming, loaded with technical debt, architecture is weighting down the WHOLE world, is using more electricity and hampering progress overall.&lt;/P&gt;&lt;P&gt;And Autodesk is not interested in changing this situation!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 08:56:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/parallel-read-from-net/m-p/10737495#M35655</guid>
      <dc:creator>MGO-Norsyn</dc:creator>
      <dc:date>2021-11-05T08:56:38Z</dc:date>
    </item>
  </channel>
</rss>

