Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Python Add-In help please

$
0
0
I am struggling to get this working. Attempting to follow along with Creating an addin tool

http://resources.arcgis.com/en/help/...000001q000000/

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.

Code:


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

However, moving on to "Testing an add-in" http://resources.arcgis.com/en/help/...0000026000000/

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

Viewing all articles
Browse latest Browse all 2485

Trending Articles