<?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 Windows Focus during batch processing in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/windows-focus-during-batch-processing/m-p/2801352#M63408</link>
    <description>&lt;P&gt;I have a VBA program that I'm converting to VB.Net.&amp;nbsp; The program is a batch process&amp;nbsp;that opens a an excel file, opens a template drawing, adds blocks (listed in the excel file), plots&amp;nbsp;and saves the drawing, then moves on to the next drawing, and so on.&amp;nbsp; In Autocad 2008 and previous version, the program ran in the background, i.e. I could see what was happening, but it didn't affect the running of other programs (like email).&amp;nbsp; However, since switching to Autocad 2009 (and 2010, and now 2011), the very same program now steels focus every time a new drawing is created (every few seconds).&amp;nbsp; We've been running this program for years during normal business hours, but have had to change to running them on a remote VM (which is slower) or at night.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have since converted the program to vb.net, but I get the same results; windows or autocad keeps returning the focus to the autocad interface.&amp;nbsp; When I originally started to covert this program, I was going to do everything in the database only&amp;nbsp;(not the user interface), it appears that to plot, though,&amp;nbsp;the drawing must be opened in the interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can still run the same VBA program in 2008 or 2007&amp;nbsp;(if I re-install them) and it will run without steeling focus, but the 2007 file format is slightly larger and adds up with the thousands of drawings we are dealing with.&amp;nbsp; And I want to move to vb.net and 2011.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I sent in a support ticket to autodesk, but they blame it on windows.&amp;nbsp;&amp;nbsp;We continue to use&amp;nbsp;XP Pro.&amp;nbsp; So nothing has changed there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas&amp;nbsp;what may be causing this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Ken&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2010 20:41:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-10-19T20:41:05Z</dc:date>
    <item>
      <title>Windows Focus during batch processing</title>
      <link>https://forums.autodesk.com/t5/net-forum/windows-focus-during-batch-processing/m-p/2801352#M63408</link>
      <description>&lt;P&gt;I have a VBA program that I'm converting to VB.Net.&amp;nbsp; The program is a batch process&amp;nbsp;that opens a an excel file, opens a template drawing, adds blocks (listed in the excel file), plots&amp;nbsp;and saves the drawing, then moves on to the next drawing, and so on.&amp;nbsp; In Autocad 2008 and previous version, the program ran in the background, i.e. I could see what was happening, but it didn't affect the running of other programs (like email).&amp;nbsp; However, since switching to Autocad 2009 (and 2010, and now 2011), the very same program now steels focus every time a new drawing is created (every few seconds).&amp;nbsp; We've been running this program for years during normal business hours, but have had to change to running them on a remote VM (which is slower) or at night.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have since converted the program to vb.net, but I get the same results; windows or autocad keeps returning the focus to the autocad interface.&amp;nbsp; When I originally started to covert this program, I was going to do everything in the database only&amp;nbsp;(not the user interface), it appears that to plot, though,&amp;nbsp;the drawing must be opened in the interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can still run the same VBA program in 2008 or 2007&amp;nbsp;(if I re-install them) and it will run without steeling focus, but the 2007 file format is slightly larger and adds up with the thousands of drawings we are dealing with.&amp;nbsp; And I want to move to vb.net and 2011.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I sent in a support ticket to autodesk, but they blame it on windows.&amp;nbsp;&amp;nbsp;We continue to use&amp;nbsp;XP Pro.&amp;nbsp; So nothing has changed there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas&amp;nbsp;what may be causing this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Ken&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2010 20:41:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/windows-focus-during-batch-processing/m-p/2801352#M63408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-19T20:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Focus during batch processing</title>
      <link>https://forums.autodesk.com/t5/net-forum/windows-focus-during-batch-processing/m-p/3017728#M63409</link>
      <description>&lt;P&gt;Anyone have a solution for this?&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2011 14:37:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/windows-focus-during-batch-processing/m-p/3017728#M63409</guid>
      <dc:creator>pjfontes</dc:creator>
      <dc:date>2011-05-09T14:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Windows Focus during batch processing</title>
      <link>https://forums.autodesk.com/t5/net-forum/windows-focus-during-batch-processing/m-p/3380221#M63410</link>
      <description>&lt;P&gt;Download TweakUI from Microsoft&lt;/P&gt;&lt;P&gt;Start-&amp;gt;Run-&amp;gt;tweakui&lt;/P&gt;&lt;P&gt;General-&amp;gt;Focus-&amp;gt;Prevent Applications From Stealing Focus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This helps a lot.. but doesn't eliminate the issue entirely.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2012 18:00:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/windows-focus-during-batch-processing/m-p/3380221#M63410</guid>
      <dc:creator>pjfontes</dc:creator>
      <dc:date>2012-03-21T18:00:08Z</dc:date>
    </item>
  </channel>
</rss>

