<?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 suspend script? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222118#M17143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for answer!&lt;BR /&gt;The Tasks look like what i need, but I don't have ArcGIS Pro:(&lt;BR /&gt;I'm not sure but would I be able to edit tables manually? I mean like this, directly in the table:&lt;IMG __jive_id="349388" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/349388_Безымянный.png" style="width: 620px; height: 353px;" /&gt;&lt;BR /&gt;In "Editor" description editing is performed using instruments, not manually, i mean by hands:) (sorry for my bad English)&lt;BR /&gt;I thought about functionality like pause/play/stop, so i run script, it executes some instructions and instruments, then it makes "pause" and wait until i make my editing in the tables, and then the script finish other instructions. I even thinking about additional window on Python with button "Continue".&lt;/P&gt;&lt;P&gt;Sorry for many words, so, can I edit cells like is written above?&lt;BR /&gt;If not, well, I'll separate this script into two.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 May 2017 07:49:55 GMT</pubDate>
    <dc:creator>helloworld</dc:creator>
    <dc:date>2017-05-03T07:49:55Z</dc:date>
    <item>
      <title>How to suspend script?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222112#M17137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. Is it possible to suspend script execution, then &lt;STRONG&gt;manually&lt;/STRONG&gt; edit some tables in ArcGIS and then continue script execution? How can I do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 08:43:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222112#M17137</guid>
      <dc:creator>helloworld</dc:creator>
      <dc:date>2017-05-02T08:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to suspend script?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222113#M17138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what you mean by 'suspend', but if you are looking for python and editing on the same process, then&lt;/P&gt;&lt;P&gt;the&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/editor.htm"&gt; data access Editor&lt;/A&gt; might be what you are looking for. &amp;nbsp; How are you planning to implement this in any event? as a tool in ArcToolbox?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 08:59:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222113#M17138</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-02T08:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to suspend script?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222114#M17139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for answer!:) I edit my question in the header, it means that script execute some ArcGIS instruments (calculate, addField, intersect and so on), thеn it can be necessary to edit some tables manually (so script should be suspended), and then, when editing is over, other instructions must be executed&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;as a tool in ArcToolbox?&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, but it can be another way, because maybe some troubles with foreground processing may occur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 10:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222114#M17139</guid>
      <dc:creator>helloworld</dc:creator>
      <dc:date>2017-05-02T10:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to suspend script?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222115#M17140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe in arcobjects, but it would be best to split the workflow into two separate operations in that event&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 12:31:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222115#M17140</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-02T12:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to suspend script?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222116#M17141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;A href="https://pro.arcgis.com/en/pro-app/help/tasks/whatistask.htm"&gt;Tasks &lt;/A&gt;framework in ArcGIS Pro might be what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 14:14:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222116#M17141</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2017-05-02T14:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to suspend script?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222117#M17142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;...it means that script execute some ArcGIS instruments (calculate, addField, intersect and so on), thеn it can be necessary to edit some tables manually (so script should be suspended), and then, when editing is over, other instructions must be executed&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can you break it up into separate tools/scripts?&amp;nbsp; (Similar to Bruce's suggestion of tasks in Pro).&amp;nbsp; Have the first script(s) do the calculate, addField, intersect, etc., all in one script or separated. Run you interactive edits. Then additional scripts to do the other tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I haven't tried leaving an edit session "open" at the end of a script, do your interactive editing and then run another to close the edit session, it might be possible.&amp;nbsp; Take a look at&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/editor.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/editor.htm"&gt;Editor—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(and don't forget to save at some point in there.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 14:36:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222117#M17142</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-05-02T14:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to suspend script?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222118#M17143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for answer!&lt;BR /&gt;The Tasks look like what i need, but I don't have ArcGIS Pro:(&lt;BR /&gt;I'm not sure but would I be able to edit tables manually? I mean like this, directly in the table:&lt;IMG __jive_id="349388" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/349388_Безымянный.png" style="width: 620px; height: 353px;" /&gt;&lt;BR /&gt;In "Editor" description editing is performed using instruments, not manually, i mean by hands:) (sorry for my bad English)&lt;BR /&gt;I thought about functionality like pause/play/stop, so i run script, it executes some instructions and instruments, then it makes "pause" and wait until i make my editing in the tables, and then the script finish other instructions. I even thinking about additional window on Python with button "Continue".&lt;/P&gt;&lt;P&gt;Sorry for many words, so, can I edit cells like is written above?&lt;BR /&gt;If not, well, I'll separate this script into two.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 07:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222118#M17143</guid>
      <dc:creator>helloworld</dc:creator>
      <dc:date>2017-05-03T07:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to suspend script?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222119#M17144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;In "Editor" description editing is performed using instruments, not manually,&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I don't know of a way to Pause/Continue using one script with arcpy.&amp;nbsp; In your original post, you mentioned things like "calculate, addField, intersect" which are command that you could run using arcpy. When you mention "instruments" I think of external hardware like a GPS unit, in which case you may have to go with a different process.&amp;nbsp; You mention your English is not your first language, so it may be something lost in translation. Can you clarify?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you have already started with your code and can post using &lt;A href="https://community.esri.com/docs/DOC-8691-posting-code-with-syntax-highlighting-on-geonet?sr=search&amp;amp;searchId=7956fb2a-6533-427d-8439-bbcaceee1dd7&amp;amp;searchIndex=0"&gt;https://community.esri.com/docs/DOC-8691-posting-code-with-syntax-highlighting-on-geonet?sr=search&amp;amp;searchId=7956fb2a-6533-427d-8439-bbcaceee1dd7&amp;amp;searchIndex=0&lt;/A&gt;‌ it would help other see what you have tried.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 19:08:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222119#M17144</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-05-03T19:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to suspend script?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222120#M17145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;split into separate tasks... I doubt if your workflow will be completely linear in any event... what happens when you want to undo an edit or something? you would have to program/account for that situation as well.&amp;nbsp; You can produce your own toolbox and have the tools available there in logical order so that you can proceed from one step to another or revisit any step at any time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 23:59:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222120#M17145</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-03T23:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to suspend script?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222121#M17146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, you're right, this play/pause thing will be inconvenient... Bad idea:) Okay, I'll split it. Thanks Dan, thanks Rebecca!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 08:43:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222121#M17146</guid>
      <dc:creator>helloworld</dc:creator>
      <dc:date>2017-05-04T08:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to suspend script?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222122#M17147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fwiw, I saw this response and thought it might help with a piece of your task.&amp;nbsp; It's dealing with SDE (which I don't know that your are), but it has a couple suggestions for starting up an edit session.&amp;nbsp; just fyi.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/message/335518?commentID=335518&amp;amp;et=watches.email.outcome#comment-335518" title="https://community.esri.com/message/335518?commentID=335518&amp;amp;et=watches.email.outcome#comment-335518"&gt;https://community.esri.com/message/335518?commentID=335518&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:19:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222122#M17147</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-05-08T15:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to suspend script?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222123#M17148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I often write scripts which are designed to run for hours or days, so I usually add a test at the top of major processing loops that check for some condition which would cause graceful termination.&amp;nbsp; Often it is the existence of a "stop.now" file,&amp;nbsp; but sometimes it is a "pause.now" which puts the script in a loop waiting for either a "stop.now" to terminate or an absence of "pause.now" to continue.&amp;nbsp; This would have to be added into your script before execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Python script tools (.pyt) can interact with the progress bar in the tool window, but need to be inside an asynchronous arcpy.SetProgressor()/ResetProgressor() session, at which point a try block around arcpy.SetProgressorPosition() will catch a Cancel button press and allow you to handle it gracefully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 15:41:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-suspend-script/m-p/222123#M17148</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-05-08T15:41:29Z</dc:date>
    </item>
  </channel>
</rss>

