<?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 Process large amounts of drawings in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5907740#M37961</link>
    <description>&lt;P&gt;I am still struggling to come up with an efficient method in VB.NET to process large amounts of drawings.&amp;nbsp; I am using AutoCAD 2015 and my code is in VB.NET.&amp;nbsp; I find I can process 20-30 drawings properly, but then the processing slows to a crawl to the point where it just freezes.&amp;nbsp; I know it is nothing to do with what I am doing in the processing of drawings as I have stripped it down to the app just opening and closing drawings, and it STILL craters on itself in a short amount of time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any code examples that shows swift and efficient processing of hundreds of drawing files in VB.NET?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
    <pubDate>Fri, 13 Nov 2015 22:02:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-13T22:02:21Z</dc:date>
    <item>
      <title>Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5907740#M37961</link>
      <description>&lt;P&gt;I am still struggling to come up with an efficient method in VB.NET to process large amounts of drawings.&amp;nbsp; I am using AutoCAD 2015 and my code is in VB.NET.&amp;nbsp; I find I can process 20-30 drawings properly, but then the processing slows to a crawl to the point where it just freezes.&amp;nbsp; I know it is nothing to do with what I am doing in the processing of drawings as I have stripped it down to the app just opening and closing drawings, and it STILL craters on itself in a short amount of time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any code examples that shows swift and efficient processing of hundreds of drawing files in VB.NET?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2015 22:02:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5907740#M37961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-13T22:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5908145#M37962</link>
      <description>&lt;P&gt;Have you considered to use the AutoCAD Core Console? You can start multiple instances of it and process drawings parallel. Each instance can end after one drawing is processed. &amp;nbsp;So you won't get slowdown even with many DWGs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2015 12:53:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5908145#M37962</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2015-11-14T12:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5908149#M37963</link>
      <description>&lt;P&gt;(Accidentally posted twice)&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2015 13:20:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5908149#M37963</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2015-11-14T13:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5910654#M37964</link>
      <description>&lt;P&gt;How would I go about calling this? &amp;nbsp;I need to call it from within my application to process specific code on each drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 21:08:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5910654#M37964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-16T21:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5910732#M37965</link>
      <description>&lt;P&gt;Thats the recommended method of handling large numbers of files, effectively running a single command-line session per DWG file.&amp;nbsp; It avoids some problems associated with memory management in Windows.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 22:05:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5910732#M37965</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2015-11-16T22:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5910742#M37966</link>
      <description>&lt;P&gt;Ok, but let's say I have hundreds of drawings in a multitude of different directories that the user needs to process, they are running my .NET application, then they will press a button in my application that will launch a function that will process hundreds of drawings. &amp;nbsp;How would I initiate the process of opening separate windows of AutoCAD, opening each of these hundreds of files then have my code for processing each of these files run? &amp;nbsp;What would the code look like?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 22:11:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5910742#M37966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-16T22:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5910788#M37967</link>
      <description>&lt;P&gt;No windows - remember, the core console is "GUI-less".&amp;nbsp; Your executeable would manage the calls to start the program with a specific drawing, probably with a very simple script&amp;nbsp;to do [whatever], then save and close.&amp;nbsp; You could let each one finish in turn, or get a little fancy and specify a maximum number of simultaneous calls, calling the next from the pool of drawings as another finishes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: a quick search turned up some useful info: &lt;A href="http://through-the-interface.typepad.com/through_the_interface/2012/02/the-autocad-2013-core-console.html" target="_blank"&gt;http://through-the-interface.typepad.com/through_the_interface/2012/02/the-autocad-2013-core-console.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may find other results helpful.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 22:37:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5910788#M37967</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2015-11-16T22:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5910800#M37968</link>
      <description>&lt;P&gt;Ok, sounds like a great way to process mass quantities, and this would mean that you do not have to worry about crashes because of bad drawings. &amp;nbsp;The only thing is that the processing of each drawing is not a simple script. &amp;nbsp;I do quite a bit to the drawings as each one is opened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know of a link to this core console details and how it all works?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 22:39:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5910800#M37968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-16T22:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5910835#M37969</link>
      <description>&lt;P&gt;You still need to worry about corrupt/"bad" drawings but it can be handled within your host application.&amp;nbsp; Handy for logging which drawings bounce without dropping the remaining files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're not able to break the complex operations down into simple operations you'll need to take a different route.&amp;nbsp; I've used a single&amp;nbsp;AutoCAD session to process groups of around 50 drawings at a time with reasonable times *but* that operated inside AutoCAD.&amp;nbsp; It would be possible to do something similar to ScriptPro (if not using it outright) to launch sequential sessions to do the same - create list of drawings,&amp;nbsp;open AutoCAD, operate on each drawing, close AutoCAD; create next list; and so on.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 22:56:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5910835#M37969</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2015-11-16T22:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5910867#M37970</link>
      <description>&lt;P&gt;Most of these functions that process mass drawings will be running anywhere from 600-1500 drawings at a time. &amp;nbsp;Funny thing is that VBA could do this without ANY issues at all in earlier releases of AutoCAD. &amp;nbsp;I thought .NET would be even better, but it is proving to be a beast. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script Pro is not an option because this all has to be invisible to the user. &amp;nbsp;But I like the idea of handling the drawings like script pro like you suggest. &amp;nbsp;So from my parent app, I would launch separate instances of AutoCAD 2015 that would automatically load the drawing and run a dll that would contain my more intense single file processing code. &amp;nbsp;How would I go about doing that? &amp;nbsp;This sounds like probably the most bulletproof option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 23:14:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5910867#M37970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-16T23:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5911283#M37971</link>
      <description>&lt;P&gt;Refer to the docs of the AutoCAD core console (ACC). You can pass a DWG name and a script file (.scr) name as parameters.&lt;/P&gt;&lt;P&gt;Additionaly it is possible to load .CRX or .Net modules that implement your command.&lt;/P&gt;&lt;P&gt;There are certain restrictions for the modules. They may not reference GUI related stuff.&lt;/P&gt;&lt;P&gt;You have to make sure that the module with the command you need is loaded. It could be loaded by script or via proper registration of the command.&lt;/P&gt;&lt;P&gt;Now for each DWG you need to process, you just call ACC with an appropriate script.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 08:12:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5911283#M37971</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2015-11-17T08:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5911346#M37972</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some links that might be of help :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://through-the-interface.typepad.com/through_the_interface/2012/02/the-autocad-2013-core-console.html" target="_blank"&gt;http://through-the-interface.typepad.com/through_the_interface/2012/02/the-autocad-2013-core-console.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://aucache.autodesk.com/au2012/sessionsFiles/3338/3323/handout_3338_CP3338-Handout.pdf" target="_blank"&gt;http://aucache.autodesk.com/au2012/sessionsFiles/3338/3323/handout_3338_CP3338-Handout.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/04/getting-started-with-accoreconsole.html" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2012/04/getting-started-with-accoreconsole.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://autocadtips1.com/2013/01/30/up-and-running-with-the-2013-core-console/" target="_blank"&gt;http://autocadtips1.com/2013/01/30/up-and-running-with-the-2013-core-console/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 08:54:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5911346#M37972</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-11-17T08:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5923720#M37973</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I am wading my way through this as the core console sounds like exactly what I need. &amp;nbsp;I need the give the ability for my users to process mass amounts of drawings from within my .NET app. &amp;nbsp;I am having some issues getting it working though.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Basically I followed some of Augusto's code to launch the scr file which then in turn would load the stripped down .NET dll that will process. &amp;nbsp;I have simplified in the below example to just basically get it working, then will add the actual code. &amp;nbsp;I am using 2015 AutoCAD.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Contents of my main .NET dll to launch the core console:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Sub Button7_Click_1(sender As Object, e As EventArgs) Handles Button7.Click&lt;BR /&gt;Dim process As New Process()&lt;BR /&gt;process.StartInfo.UseShellExecute = False&lt;BR /&gt;process.StartInfo.RedirectStandardOutput = True&lt;BR /&gt;process.StartInfo.CreateNoWindow = True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim scriptFile As String&lt;BR /&gt;Dim fileName As String&lt;BR /&gt;scriptFile = "C:\SYSTEM_NO\core_console.scr"&lt;BR /&gt;fileName = "C:\PD612-A-JEFF-9009-1.DWG"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;process.StartInfo.FileName = "C:\Program Files\Autodesk\AutoCAD 2015\accoreconsole.exe"&lt;/P&gt;&lt;P&gt;Dim param As String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;param = " /s " &amp;amp; scriptFile&lt;BR /&gt;param = param &amp;amp; " /i " &amp;amp; fileName&lt;BR /&gt;process.StartInfo.Arguments = param&lt;BR /&gt;Try&lt;/P&gt;&lt;P&gt;Using (process)&lt;/P&gt;&lt;P&gt;process.Start()&lt;BR /&gt;End Using&lt;BR /&gt;Catch&lt;BR /&gt;MsgBox(Err.Description)&lt;BR /&gt;End Try&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So, the contents of the scr file are as follows. &amp;nbsp;It just loads the dll, the executes a function:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(command "_.Netload" "C:\\system_no\\core_console.dll")&lt;BR /&gt;Test1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;And here is the example of the dll that is called:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option Strict Off&lt;BR /&gt;Option Explicit On&lt;/P&gt;&lt;P&gt;Imports VB = Microsoft.VisualBasic&lt;/P&gt;&lt;P&gt;Imports System.IO&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Public Class Class1&lt;BR /&gt;Public Sub Test1()&lt;/P&gt;&lt;P&gt;MsgBox("It ran")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End Sub&lt;BR /&gt;End Class&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is the result of what I get when the core console window comes up:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regenerating model.&lt;BR /&gt;Press ENTER to continue:&lt;/P&gt;&lt;P&gt;Command:&lt;BR /&gt;Command:&lt;/P&gt;&lt;P&gt;Command:&lt;BR /&gt;Command: (command "_.Netload" "C:\\system_no\\core_console.dll")&lt;BR /&gt;_.Netload Assembly file name: C:\system_no\core_console.dll&lt;BR /&gt;ommand: nil&lt;/P&gt;&lt;P&gt;Command: Test1&lt;BR /&gt;Unknown command "TEST1". Press F1 for help.&lt;/P&gt;&lt;P&gt;Command: _quit&lt;/P&gt;&lt;P&gt;Command:&lt;BR /&gt;C:\Program Files&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Even when I try to run the script and dll directly through the core console, I get the same error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Program Files\Autodesk\AutoCAD 2015\accoreconsole.exe /i C:\PD612-A-JEFF-9009-1.DWG /s C:\SYSTEM_NO\core_console.scr /l en-US&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 23:54:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5923720#M37973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-24T23:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5923812#M37974</link>
      <description>&lt;P&gt;You misssed the &lt;FONT face="lucida sans unicode,lucida sans"&gt;CommandMethod&lt;/FONT&gt; Attribute on &lt;FONT face="lucida sans unicode,lucida sans"&gt;Sub Test1&lt;/FONT&gt;. See&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-NET/files/GUID-F77E8FE0-8034-4704-93BD-F717608F8223-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-NET/files/GUID-F77E8FE0-8034-4704-93BD-F717608F8223-htm.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 02:22:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5923812#M37974</guid>
      <dc:creator>CADbloke</dc:creator>
      <dc:date>2015-11-25T02:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5926248#M37975</link>
      <description>&lt;P&gt;Thanks guys! &amp;nbsp;This has helped greatly. &amp;nbsp;Got the core console working well for my processing. &amp;nbsp;Going to throw some more stuff at it to see where it's breaking points are!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2015 15:23:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5926248#M37975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-26T15:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5933183#M37976</link>
      <description>&lt;P&gt;Here is an example that might help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.theswamp.org/index.php?topic=41948.msg551684#msg551684" target="_blank"&gt;http://www.theswamp.org/index.php?topic=41948.msg551684#msg551684&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 18:37:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5933183#M37976</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2015-12-02T18:37:23Z</dc:date>
    </item>
    <item>
      <title>arguments</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5934729#M37977</link>
      <description>&lt;P&gt;If I am firing off a&amp;nbsp;process to run through core console, and if I need to pass arguments to the dll that will be loaded through the script file, is there any possible way of doing this? &amp;nbsp;I need to specify a database connection string in the dll that is loaded when the drawing through the core console is loaded. &amp;nbsp;I have the variable value in my core dll that executes the core console call, but I also need it in the dll that is loaded through the script file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 16:15:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5934729#M37977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-03T16:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: arguments</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5935286#M37978</link>
      <description>&lt;P&gt;DLLs don't take arguments -&amp;nbsp;methods do.&amp;nbsp; You can do this through a couple of methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of the easiest would be to define a command method (or methods, if you need multiple presets)&amp;nbsp;which act&amp;nbsp;as calling wrappers to the methods, provding arguments as needed.&amp;nbsp; Rather than hard coding that database connection string, create an object to handle the connection, and have that object check for a registry entry, simple data file, or other external source.&amp;nbsp; Then you can control where it points using an external program ie. the one thats calling the core console controller.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also build the commands to take arguments, much as LINE and other AutoCAD&amp;nbsp;commands prompt for points.&amp;nbsp; Then you can build the calling script to provide appropriate input at the command line.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 21:54:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5935286#M37978</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2015-12-03T21:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Process large amounts of drawings</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5943116#M37979</link>
      <description>&lt;P&gt;This is important information if you want to run mulitple instances of the AutoCAD Core Console (ACC) parallel:&lt;/P&gt;&lt;P&gt;You must to use the&amp;nbsp; &lt;FONT face="courier new,courier"&gt;/isolate &amp;lt;regkey&amp;gt; &amp;lt;working_directory&amp;gt;&lt;/FONT&gt;&amp;nbsp; argument in the command line to avoid stability issues!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Balaji Ramamoorthy" href="http://profile.typepad.com/6p016303198bdc970d" target="_blank"&gt;Balaji Ramamoorthy&lt;/A&gt; also reported my findings &lt;A title="Parallel Aggregation using the Core Console" href="http://adndevblog.typepad.com/autocad/2015/02/parallel-aggregation-using-accoreconsole.html" target="_blank"&gt;here&lt;/A&gt; in his blog.&lt;/P&gt;&lt;P&gt;I use the ACC for batch plotting multiple DWGs. My application checks the number of processor cores N in the machine and starts N-1 threads.&lt;/P&gt;&lt;P&gt;Each tread basically does this loop:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;lt;J&amp;gt; =&amp;nbsp; getThreadNumber()&amp;nbsp;&amp;nbsp;&amp;nbsp; // &amp;lt;J&amp;gt; = 1, 2, ... N-1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; while (&amp;lt;dwg&amp;gt; = getNextDWG())&amp;nbsp; {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; start accoreconsole /i &amp;lt;dwg&amp;gt; /s c:\script.scr /isolate user&amp;lt;J&amp;gt; c:\temp\acc&amp;lt;J&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wait until ACC finishes&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; }&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i.e. I might have these calls running parallel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; accoreconsole /i c:\drwA.dwg /s c:\myscript.scr /isolate user1 c:\temp\acc1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; accoreconsole /i c:\drwB.dwg /s c:\myscript.scr /isolate user2 c:\temp\acc2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; ...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; accoreconsole /i c:\drwX.dwg /s c:\myscript.scr /isolate user7 c:\temp\acc7&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before I used different working directories&amp;nbsp;&lt;FONT face="courier new,courier"&gt;c:\temp\acc&amp;lt;J&amp;gt;&lt;/FONT&gt; the ACC sometimes failed in one of these ways:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;+ ACC crashed&lt;/P&gt;&lt;P&gt;&amp;nbsp;+ ACC ate up more and more memory (1GB, 2GB, ... ) until Windows crashed!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;+ ACC ran forever&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The shorter the time between two ACC starts was the higher was the probability of an ACC failure.&lt;/P&gt;&lt;P&gt;Using&amp;nbsp;&amp;nbsp; &lt;FONT face="courier new,courier"&gt;/isolate user&amp;lt;J&amp;gt; c:\temp\acc&amp;lt;J&amp;gt;&lt;/FONT&gt; &amp;nbsp; completely fixed the problem. Apparently this avoids access to shared resources.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ACC will even create a new working directory&amp;nbsp; &lt;FONT face="courier new,courier"&gt;c:\temp\acc&amp;lt;J&amp;gt;&lt;/FONT&gt; &amp;nbsp; if it doesn't exist.&lt;/P&gt;&lt;P&gt;Note: This directory will contain a lot of stuff: About 150MByte!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;FONT face="courier new,courier"&gt;&amp;lt;regkey&amp;gt;&lt;/FONT&gt; argument (&lt;FONT face="courier new,courier"&gt;user&amp;lt;J&amp;gt;&lt;/FONT&gt; in my example) can be any arbitrary name. It doesn't have to be an existing Windows user name or something. ACC will create a temporary registry path with this key.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 09:18:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5943116#M37979</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2015-12-09T09:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: arguments</title>
      <link>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5949455#M37980</link>
      <description>&lt;P&gt;Hey Jeff i'm sure heaps of other folks would love to be able to do what you're doing now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any code that you post will help future readers trouble shoot and will be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;personally speaking I will be following these threads quite closely.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;</description>
      <pubDate>Sun, 13 Dec 2015 21:30:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/process-large-amounts-of-drawings/m-p/5949455#M37980</guid>
      <dc:creator>BKSpurgeon</dc:creator>
      <dc:date>2015-12-13T21:30:51Z</dc:date>
    </item>
  </channel>
</rss>

