Message 1 of 11
Not applicable
06-21-2016
05:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
Solved! Go to Solution.