<?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: Prevent users from running script tool if not in edit session? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/prevent-users-from-running-script-tool-if-not-in/m-p/692745#M22965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think it is possible to detect open edit sessions with Python scripting (because the geoprocessing model is supposed to automatically handle edit sessions on its own), only from within ArcObjects, unless you resort to something hacky like running a tool you know will throw an error without an edit session, trap the error and replace it with your own.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Nov 2010 20:37:56 GMT</pubDate>
    <dc:creator>LoganPugh</dc:creator>
    <dc:date>2010-11-18T20:37:56Z</dc:date>
    <item>
      <title>Prevent users from running script tool if not in edit session?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/prevent-users-from-running-script-tool-if-not-in/m-p/692744#M22964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a script tool that calculates fields.&amp;nbsp; How do you prevent the user from accidentally running the tool if s/he isn't in an edit session?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Nov 2010 14:10:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/prevent-users-from-running-script-tool-if-not-in/m-p/692744#M22964</guid>
      <dc:creator>Pey_JinCook</dc:creator>
      <dc:date>2010-11-15T14:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent users from running script tool if not in edit session?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/prevent-users-from-running-script-tool-if-not-in/m-p/692745#M22965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think it is possible to detect open edit sessions with Python scripting (because the geoprocessing model is supposed to automatically handle edit sessions on its own), only from within ArcObjects, unless you resort to something hacky like running a tool you know will throw an error without an edit session, trap the error and replace it with your own.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 20:37:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/prevent-users-from-running-script-tool-if-not-in/m-p/692745#M22965</guid>
      <dc:creator>LoganPugh</dc:creator>
      <dc:date>2010-11-18T20:37:56Z</dc:date>
    </item>
  </channel>
</rss>

