<?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: How to detect a manual user cancel in arcpy? in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-detect-a-manual-user-cancel-in-arcpy/m-p/730370#M7037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a general way to detect when the user clicks the Cancel button?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2012 16:58:09 GMT</pubDate>
    <dc:creator>DanielDillard</dc:creator>
    <dc:date>2012-10-22T16:58:09Z</dc:date>
    <item>
      <title>How to detect a manual user cancel in arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-detect-a-manual-user-cancel-in-arcpy/m-p/730368#M7035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running a NA-based arcpy tool, and can't figure out how to tell the code when a user manually cancels the operation in the GUI? If that happens, we want the code to do some clean-up work, but we can't figure out how to let the code know that a user has pressed "cancel". Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andres&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 23:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-detect-a-manual-user-cancel-in-arcpy/m-p/730368#M7035</guid>
      <dc:creator>AndresSevtsuk</dc:creator>
      <dc:date>2011-11-23T23:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect a manual user cancel in arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-detect-a-manual-user-cancel-in-arcpy/m-p/730369#M7036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andres,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are running NA Solve tool in background from python window in ArcMap you can use the result object success output parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;result = arcpy.na.Solve("Service Area")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;resultSuccess = result.getOutput(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;resultSuccess will be false if cancelled OR if an error occured that prevented the solve.&amp;nbsp; If the goal is to do cleanup if the solve didn't complete this may be useful information for your purposes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Rich&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 22:35:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-detect-a-manual-user-cancel-in-arcpy/m-p/730369#M7036</guid>
      <dc:creator>RichKrabill</dc:creator>
      <dc:date>2011-11-29T22:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect a manual user cancel in arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-detect-a-manual-user-cancel-in-arcpy/m-p/730370#M7037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a general way to detect when the user clicks the Cancel button?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 16:58:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-detect-a-manual-user-cancel-in-arcpy/m-p/730370#M7037</guid>
      <dc:creator>DanielDillard</dc:creator>
      <dc:date>2012-10-22T16:58:09Z</dc:date>
    </item>
  </channel>
</rss>

