<?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: Creating a progress bar/progress dialog for a python addin tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439617#M34489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Benjamin Simpson wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would this mean that the only way for me to get the arcpy.SetProgress function to work with my script is to transfer my script into a toolbox and then call the toolbox using the arcpy.GPToolDialog function in my python addin?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, that's what I said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Benjamin Simpson wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case is it possible to store this toolbox within the Install folder of the python addin? I am thinking purely about ease of sharing this python addin.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes. Then in your add-in use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14478899779199023" data-renderedposition="382_8_895_16" jivemacro_uid="_14478899779199023"&gt;&lt;P&gt;arcpy.GPToolDialog(os.path.join(os.path.dirname(__file__), 'mytoolbox.tbx'), 'MyTool')&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2015 23:39:14 GMT</pubDate>
    <dc:creator>Luke_Pinner</dc:creator>
    <dc:date>2015-11-18T23:39:14Z</dc:date>
    <item>
      <title>Creating a progress bar/progress dialog for a python addin tool</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439609#M34481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a python addin toolbar which contains several buttons which run data management scripts in ArcMap. These scripts primarily append data from one or more personal geodatabases to an Oracle database. These scripts can take anywhere from a few seconds to, well longer, depending on the number of geodatabases selected and their size. I currently have several messages displayed using pythonaddins.MessageBox() at the beggining and the end of my scripts. What I am looking to include now is some sort of progres bar or progress dialog box which shows the user how the script is progressing. As it currently standing when the script is run, apart from the current message boxes it is not clear how far along the process the script has got. I would ideally like a progress dialog box which has a progress bar with the ability to print messages below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question I have is how do I go about this? I have seen mentions as to pythonaddins.ProgressDialog (&lt;A href="https://desktop.arcgis.com/en/desktop/latest/guide-books/python-addins/the-pythonaddins-module.htm" title="https://desktop.arcgis.com/en/desktop/latest/guide-books/python-addins/the-pythonaddins-module.htm"&gt;The pythonaddins module—Help | ArcGIS for Desktop&lt;/A&gt;) but when I try and run the example code in the python window i get an error stating that the 'module' object has no attribute 'ProgressDialog'. I am using ArcGIS 10.2 so not sure if this ProgressDialog function is supported esspecially seeing as the 10.2 help doesnt not mention it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be very greatful if someone could point me in the direction of some useful help documents or tutorials which will show me how to create some sort of progress dialog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 13:17:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439609#M34481</guid>
      <dc:creator>BenjaminSimpson</dc:creator>
      <dc:date>2015-11-17T13:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a progress bar/progress dialog for a python addin tool</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439610#M34482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not worked with this option yet (but plan to check it out), but my guess as why it didn't work in the python window is mentioned in the help link you provided....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; background-color: #ededed;"&gt;note: The &lt;/SPAN&gt;&lt;SPAN class="usertext" style="font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold; color: #4d4d4d;"&gt;pythonaddins&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; background-color: #ededed;"&gt; module can only be used within a Python add-in. It cannot be used in stand-alone scripts or geoprocessing script tools.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that may explain the error you received.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 13:29:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439610#M34482</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-11-17T13:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a progress bar/progress dialog for a python addin tool</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439611#M34483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ahh yes, that may answer the error in the python window. The help page seems abit misleading as it suggests running the sample code through the python window which is contradicting that note at the top of the page.&lt;/P&gt;&lt;P&gt;I have tried including that sample code (below) in my python addin but unfortunately I got the same error "'module' object has no attribute 'ProgressDialog'" when I ran my tool in ArcMap. Now unless I am getting confused by what exactly a python add-in is. I am under the assumption that my custom toolbar with several buttons running python scripts is a python add-in. I have a feeling that this ProgressDialog function within pythonaddins is not supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="kn"&gt;import&lt;/SPAN&gt; &lt;SPAN class="nn"&gt;pythonaddins&lt;/SPAN&gt;
&lt;SPAN class="k"&gt;with&lt;/SPAN&gt; &lt;SPAN class="n"&gt;pythonaddins&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ProgressDialog&lt;/SPAN&gt; &lt;SPAN class="k"&gt;as&lt;/SPAN&gt; &lt;SPAN class="n"&gt;dialog&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="n"&gt;dialog&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;title&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"Progress Dialog"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="n"&gt;dialog&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;description&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"Copying a large feature class."&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="n"&gt;dialog&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;animation&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"File"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="k"&gt;for&lt;/SPAN&gt; &lt;SPAN class="n"&gt;i&lt;/SPAN&gt; &lt;SPAN class="ow"&gt;in&lt;/SPAN&gt; &lt;SPAN class="nb"&gt;xrange&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;100&lt;/SPAN&gt;&lt;SPAN class="p"&gt;):&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="n"&gt;dialog&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;progress&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;i&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="n"&gt;time&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;sleep&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="mf"&gt;0.125&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="k"&gt;if&lt;/SPAN&gt; &lt;SPAN class="n"&gt;dialog&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;cancelled&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="k"&gt;raise&lt;/SPAN&gt; &lt;SPAN class="ne"&gt;Exception&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"Ooops"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:40:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439611#M34483</guid>
      <dc:creator>BenjaminSimpson</dc:creator>
      <dc:date>2021-12-11T19:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a progress bar/progress dialog for a python addin tool</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439612#M34484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Benjamin Simpson wrote:

&lt;SPAN style="font-family: inherit;"&gt;.... Now unless I am getting confused by what exactly a python add-in is. I am under the assumption that my custom toolbar with several buttons running python scripts is a python add-in. I have a feeling that this ProgressDialog function within pythonaddins is not supported.&lt;/SPAN&gt;
 .....&lt;SPAN class="string" style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 9pt; background-color: inherit; white-space: nowrap;"&gt;&lt;/SPAN&gt;
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import pythonaddins with pythonaddins.ProgressDialog as dialog:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dialog.title = "Progress Dialog"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dialog.description = "Copying a large feature class."&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dialog.animation = "File"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i in xrange(100):&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dialog.progress = i&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time.sleep(0.125)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if dialog.cancelled:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise Exception("Ooops")&lt;/PRE&gt;&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV style="display: none;"&gt; &lt;/DIV&gt;&lt;P&gt;You may want to check out&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/desktop/latest/guide-books/python-addins/what-is-a-python-add-in.htm" title="https://desktop.arcgis.com/en/desktop/latest/guide-books/python-addins/what-is-a-python-add-in.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;What is a Python add-in?—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Python addins are actually a collection of files that are (semi) compiled into a file with .addin extension (if you change the .addin to .zip, you can view all the files).&amp;nbsp; Once you figure out how to set them up, they are actually really slick and can be installed easily on other machines (but not available in Pro).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a wizard to help set it all up, and I'll track it down and post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:40:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439612#M34484</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2021-12-11T19:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a progress bar/progress dialog for a python addin tool</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439613#M34485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(having issues editing my posts this am...so had to reply to my previous post)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is is the link to the addin wizard link &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=5f3aefe77f6b4f61ad3e4c62f30bff3b" title="http://www.arcgis.com/home/item.html?id=5f3aefe77f6b4f61ad3e4c62f30bff3b"&gt;http://www.arcgis.com/home/item.html?id=5f3aefe77f6b4f61ad3e4c62f30bff3b&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a bit hard to find with a search, but I did just noticed there is still a link in the help above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i find it is easiest to get most of my scripts and toolbox setup first, then run the wizard.&amp;nbsp; I have a structure that I use for my wizards that seems to work. If interested I can share...or maybe find where I may have already posted it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 14:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439613#M34485</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-11-17T14:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a progress bar/progress dialog for a python addin tool</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439614#M34486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The pythonaddins.ProgressDialog is not available in 10.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you could do is use &lt;A href="http://resources.arcgis.com/EN/HELP/MAIN/10.2/index.html#//014p00000021000000" rel="nofollow noopener noreferrer" target="_blank"&gt;pythonaddins.GPToolDialog &lt;/A&gt;(note: &lt;A _jive_internal="true" href="https://community.esri.com/message/528017#528017" target="_blank"&gt;gotchas&lt;/A&gt; if using a python pyt toolbox instead of a tbx and script tool) to kick off a script tool that does the actual long running operations and uses the &lt;A href="http://resources.arcgis.com/EN/HELP/MAIN/10.2/index.html#//018v0000003z000000" rel="nofollow noopener noreferrer" target="_blank"&gt;arcpy.SetProgressor &lt;/A&gt;object to advance the result window progress bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy, time
arcpy.SetProgressor('step','Some description', 0, 100, 1)
for i in range(100):
&amp;nbsp;&amp;nbsp;&amp;nbsp; time.sleep(0.25) #Fake doing some stuff
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SetProgressorPosition()
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SetProgressorLabel("Step %s"%(i+1))&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="144695" alt="progressor.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/144695_progressor.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:40:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439614#M34486</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2021-12-11T19:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a progress bar/progress dialog for a python addin tool</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439615#M34487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I understanding it correctly that the arcpy.SetProgress function has to be run through a geoprocessing toolbox? I have tried including it in my python script, the script still runs fine but the progress dialog does not appear. The same happens when I run the progress dialog code through the python window. Would this mean that the only way for me to get the arcpy.SetProgress function to work with my script is to transfer my script into a toolbox and then call the toolbox using the arcpy.GPToolDialog function in my python addin?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case is it possible to store this toolbox within the Install folder of the python addin? I am thinking purely about ease of sharing this python addin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help, this arcpy.SetProgress function seems like the best chance I have of creating such a progress dialog.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 10:52:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439615#M34487</guid>
      <dc:creator>BenjaminSimpson</dc:creator>
      <dc:date>2015-11-18T10:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a progress bar/progress dialog for a python addin tool</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439616#M34488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Benjamin, I don't have anything to add right now, since I haven't used it, but just wanted to point out that it is Arcpy.SetProgressor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (You missed the "or" on the end in you post.&amp;nbsp; Just so others reading this thread have the correction)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Benjamin Simpson wrote:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;If this is the case is it possible to store this toolbox within the Install folder of the python addin? I am thinking purely about ease of sharing this python addin... &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re this statement...what toolbox are you referring to in this case?&amp;nbsp; You can include any tools (including custom scripts) in a custom toolbar, and then include the toolbar/tools with in the python addin.&amp;nbsp;&amp;nbsp; Here is a post I wrote a while back so I could find it again.... &lt;A href="https://community.esri.com/thread/74093"&gt;Tip: Python Addin - getting custom tools/toolbox to work - GPToolDialog&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 15:14:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439616#M34488</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-11-18T15:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a progress bar/progress dialog for a python addin tool</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439617#M34489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Benjamin Simpson wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would this mean that the only way for me to get the arcpy.SetProgress function to work with my script is to transfer my script into a toolbox and then call the toolbox using the arcpy.GPToolDialog function in my python addin?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, that's what I said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Benjamin Simpson wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case is it possible to store this toolbox within the Install folder of the python addin? I am thinking purely about ease of sharing this python addin.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes. Then in your add-in use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14478899779199023" data-renderedposition="382_8_895_16" jivemacro_uid="_14478899779199023"&gt;&lt;P&gt;arcpy.GPToolDialog(os.path.join(os.path.dirname(__file__), 'mytoolbox.tbx'), 'MyTool')&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 23:39:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-progress-bar-progress-dialog-for-a/m-p/439617#M34489</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2015-11-18T23:39:14Z</dc:date>
    </item>
  </channel>
</rss>

