<?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 How to find if ArcMap is&amp;nbsp; processing in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-if-arcmap-is-nbsp-processing/m-p/332524#M8644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an extension written in c# and I'm looking for a way to know if ArcMap is doing any processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be really nice if there was a method like "IsInProcess" for the IApplication interface but I didn't find any (such a method exists in Autocad API...).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In earlier versions (9.3.x and before), I used to check the activity of the ArcMap.exe process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since version 10, which introduced the background geoprocessing, the processing is done at the ArcSOCP.exe and ArcSOMP.exe processes and monitoring all three processes (ArcMap, ArcSOCP, ArcSOMP) doesn't seem a very smart (or reliable) method to know if ArcMap is processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the IGeoProcessorEvents interface which has "PreToolExecute" and "PostToolExecute" events. But I can use it only for GeoProcessor objects that I create. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought that maybe there is a way to register to the events of ALL geoprocesses of the system (not only the ones that I created). This way I would be able to know when any processing starts (and ends). But again - I got to a dead end here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If any one has an idea, please share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jane&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2011 12:37:58 GMT</pubDate>
    <dc:creator>JaneDavies</dc:creator>
    <dc:date>2011-11-17T12:37:58Z</dc:date>
    <item>
      <title>How to find if ArcMap is  processing</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-if-arcmap-is-nbsp-processing/m-p/332524#M8644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an extension written in c# and I'm looking for a way to know if ArcMap is doing any processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be really nice if there was a method like "IsInProcess" for the IApplication interface but I didn't find any (such a method exists in Autocad API...).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In earlier versions (9.3.x and before), I used to check the activity of the ArcMap.exe process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since version 10, which introduced the background geoprocessing, the processing is done at the ArcSOCP.exe and ArcSOMP.exe processes and monitoring all three processes (ArcMap, ArcSOCP, ArcSOMP) doesn't seem a very smart (or reliable) method to know if ArcMap is processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the IGeoProcessorEvents interface which has "PreToolExecute" and "PostToolExecute" events. But I can use it only for GeoProcessor objects that I create. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought that maybe there is a way to register to the events of ALL geoprocesses of the system (not only the ones that I created). This way I would be able to know when any processing starts (and ends). But again - I got to a dead end here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If any one has an idea, please share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jane&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 12:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-if-arcmap-is-nbsp-processing/m-p/332524#M8644</guid>
      <dc:creator>JaneDavies</dc:creator>
      <dc:date>2011-11-17T12:37:58Z</dc:date>
    </item>
  </channel>
</rss>

