AnsweredAssumed Answered

Python Add-In help please

Question asked by jamesfreddyc on Apr 5, 2013
Latest reply on Apr 11, 2013 by jamesfreddyc
I am struggling to get this working.  Attempting to follow along with Creating an addin tool

http://resources.arcgis.com/en/help/main/10.1/index.html#/tool/014p0000001q000000/

So, I have made it through Step 3 (and maybe my edits are not sticking or something, not sure).  Keeping things very simple, I just want to display a message box when the tool is clicked.

 def onRectangle(self, rectangle_geometry):     pythonaddins.MessageBox("Add-In executed!") 


However, moving on to "Testing an add-in" http://resources.arcgis.com/en/help/main/10.1/index.html#/Testing_an_add_in/014p00000026000000/

Step 2. does not work as epected.  I double-click the new .esriaddin file that was created and it asks me which program to use to open it.  Obviously, I don't know what to choose as it is just supposed to be some sort of ESRI dialog (per the Step 2. in the doc/link above).

So, ok -- I'll just run this in PythonWin.

It runs, but it does not create the expected GUID folder, nor does it copy the contents to the folder Documents\ArcGIS\AddIns\Desktop10.1.


Any help?
Thanks,
j

Outcomes