<?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: arcpy add-in progress bar in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-add-in-progress-bar/m-p/258085#M19855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for pro&amp;nbsp; &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/controlling-the-progress-dialog-box.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/controlling-the-progress-dialog-box.htm"&gt;Controlling a script tool's progressor—Geoprocessing and Python | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;from 10.3.1 &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/creating-tools/controlling-the-progress-dialog-box.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/creating-tools/controlling-the-progress-dialog-box.htm"&gt;Controlling the progress dialog box—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;but you indicated you had tried these&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Oct 2015 21:39:36 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2015-10-17T21:39:36Z</dc:date>
    <item>
      <title>arcpy add-in progress bar</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-add-in-progress-bar/m-p/258084#M19854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to add a progress bar to an ArcPy Add-in in ArcGIS 10.2.2?&amp;nbsp; I've tried adding the following code to the add-in with out any success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.SetProgressor("step", "Copying shapefiles to geodatabase...", 0, 10, 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.SetProgressorPosition()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an add-in that updates a series of feature classes that takes anywhere from 30 secs to a few minutes depending on the machine. A progress bar would be a great addition to the tool from a UX perspective.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 20:05:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-add-in-progress-bar/m-p/258084#M19854</guid>
      <dc:creator>ShaunConway</dc:creator>
      <dc:date>2015-10-16T20:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy add-in progress bar</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-add-in-progress-bar/m-p/258085#M19855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for pro&amp;nbsp; &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/controlling-the-progress-dialog-box.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/controlling-the-progress-dialog-box.htm"&gt;Controlling a script tool's progressor—Geoprocessing and Python | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;from 10.3.1 &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/creating-tools/controlling-the-progress-dialog-box.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/creating-tools/controlling-the-progress-dialog-box.htm"&gt;Controlling the progress dialog box—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;but you indicated you had tried these&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2015 21:39:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-add-in-progress-bar/m-p/258085#M19855</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-17T21:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy add-in progress bar</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-add-in-progress-bar/m-p/258086#M19856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's my understanding that the progressor you both mentioned about is only applicable to the Geoprocessing framework. I don't believe this carriers over for addins. You may have to post an idea for this functionality at ideas.arcgis.com. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, I'm looking through the documentation for python addins and I don't see anything that would allow you to either build the UI element needed for the progress bar or anything that would allow you store the progressbar on a toolbar. If you were to use ArcObjects you could get away with a modal window that hosts the progressbar, but I don't see any interfaces available that would allow you to store the ui component on the toolbar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 05:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-add-in-progress-bar/m-p/258086#M19856</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-10-20T05:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy add-in progress bar</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-add-in-progress-bar/m-p/258087#M19857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a total count and are looping thru the process, you can always use a simple arcpy.AddMessage to keep track.&amp;nbsp; This isn't as clean as trying to get something in the process/status area, but it works if you look a the messages in the result tab.&amp;nbsp; Nothing fancy, but it will give you some indication of progress.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
ws = r'C:\test\New File Geodatabase.gdb'
arcpy.env.workspace = ws
lstFC = arcpy.ListFeatureClasses()&amp;nbsp;&amp;nbsp; # modify this for your FC type, as needed
cntTotal = len(lstFC)
print("{0} FC to process".format(cntTotal))&amp;nbsp; # use arcpy.AddMessage in script instead of print
cntRemain = cntTotal
for fc in lstFC:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # do somethin here
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(fc)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cntRemain -= 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("{0} of {1} remaining".format(cntRemain, cntTotal))
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:42:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-add-in-progress-bar/m-p/258087#M19857</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2021-12-11T12:42:37Z</dc:date>
    </item>
  </channel>
</rss>

