A python extension to a software program that performs a custom task.

learn more… | top users | synonyms

1
vote
0answers
24 views

Arcpy addin editable textbox on tool bar

I would like to add an editable toolbox on an arcpy addin toolbar. This would be used to change values of a threshold but I don't think this is currently available. (What I would really like is a ...
0
votes
1answer
12 views

Assertion Error, Trying to add .tif to group layer

So I am trying to add a layer to a group, but running into problems most likely because of the file is a .tif. I have tried quite a few different iterations of this and looked at a few solutions but ...
4
votes
3answers
120 views

Prevent newly created feature class being automatically added by ArcPy (Python AddIn) to Map Document?

I have a python addin, which as part of its function checks to see if a template point feature class exists on the user's machine. If it doesn't, it creates this file. This template file is used ...
3
votes
1answer
594 views

Reset python add-in

I have a toolbar which enables a second and third combobox when a selection is made on the previous. I would like to add a button to 'reset' the toolbar. Basically reload the toolbar to it's original ...
2
votes
2answers
68 views

Python Add-in- Message Box to display area of selected polygons

I am looking to create a Python AddIn which calculates the area of selected polygons. I would like to be able to select the features, click a button on the toolbar, and a Message box displays the sum ...
0
votes
0answers
26 views

Reload Table Cache with Python & ArcGIS 10.1 [duplicate]

I am trying to create a button in arcmap that reloads the table cache. Exactly, like the existing button Table Options > Reload Cache. The button is inside when you open an attribute table. I would ...
3
votes
0answers
66 views

Select and copy attributes features in ArcMap using Python add-in tool?

I'm trying to add a tool to an add-in toolbar to select features from an existing feature class and copy attributes to another feature class,from point to point. TopoHeight_Field_Name='Comment' def ...
2
votes
1answer
97 views

How I can do event with two clicks using python add-in wizard?

How I can do event with two clicks using python add-in wizard, I have found a way to do event with one click by adding a New Tool in the wizard, but I need "first click To copy the attributes from ...
1
vote
1answer
32 views

Cleaning up duplicating Python Add-in buttons in ArcMap

I have developed an extensive toolbar with ~30 buttons, tools, combo boxes, etc created using the Python Add-in Wizard and ArcGIS 10.2.2. Something about my development process is causing the ...
0
votes
1answer
70 views

Copying XY to clipboard using Python Add-In (ArcMap)

I am trying to create a simple tool to copy XY from where i click the mouse button. What i have done already is: create add-in files using Python Add-In Wizard create toolbar and tool inside it in ...
1
vote
0answers
46 views

ArcGIS Python Add-In: Enable snapping for OnLine method?

I am working on a Python Add-In using ArcGIS 10.2.2 where the user can draw lines and the Add-In will add dimension annotation showing length for each segment of the line that is drawn. I can get ...
6
votes
2answers
86 views

How does the deactivate function of an ArcGIS Python Add-in Tool work?

I have not been able to figure out how the deactivate function of a Python Add-in Tool works in ArcGIS. The help page that mentions the function, and that it 'causes the tool to no longer be the ...
0
votes
0answers
22 views

User accounts set up and publishing Add-In through ArcGIS Server 10.1

I have installed ArcGIS Server 10.1. My objective is to provide secure access to users and lead them to a web page where they can click on ArcMap icon and use a python Add-In developed in 10.1 ...
3
votes
1answer
41 views

add-in to open automatically "data frame properties

How can created an ArcMap Python add-in using ArcGIS 10.1 to open automatically data frame properties And change the background color of another?
1
vote
1answer
45 views

Can't Remove a Menu in Python Add-in

I have a Python add-in with a good amount of buttons and menus. I'm trying to remove a menu using the addin_assistant, but the menu isn't being removed from config.xml. I've tried removing the add-in ...
2
votes
1answer
158 views

ArcPy Clip Data Frame To Geometry

I have made an ArcPy add-in that assists a user by adding layers from a nominated fGDB to their map based on a nominated extent. I wish to add a button that changes the data frame properties to clip ...
3
votes
1answer
104 views

Using Python Add-In to delete/remove ArcMap layers that are turned off?

I have made a python addin button which removes layers that are turned off in an MXD. The strange thing is that I get different results depending on whether I run the python commands in the python ...
4
votes
1answer
72 views

Making 'persistent' ArcMap tool without creating Python add-in?

I want to make an addon that, while editing in ArcMap, will track where I pan and move the viewport. I have the pieces together, but I don't like debugging with the Python Add-In wizard, because I ...
4
votes
1answer
103 views

Changing value field when applying symbology from layer using Python Add-in?

I have a python addin button that creates a layer file from a polygon feature class in ArcMap. I want to take that layer file and, with user input from a combobox, apply it back to the feature class ...
-1
votes
1answer
489 views

ArcGIS 10.1 Custom Toolbar issue with addin wizard

I am having some issues. In ArcGIS, I created a custom toolbar (with the python addin wizard) to do the following: 1. Button to connect to feature class, 2-5. A series of comboboxes to view, edit data ...
2
votes
1answer
125 views

How to start an ArcMap editing session without displaying the Editor toolbar

I'm developing a toolbar with some geoprocessing routines and digitizing functionality. On this toolbar I have implemented a "start edit" button. I want to start an edit session by clicking that ...
1
vote
0answers
45 views

Scratch workspace for ArcGIS Desktop: file name conflict for multiple users

I have installed ArcGIS Desktop on a server (it is not ArcGIS Server installation) where I want to give access to users to use toolbar (developed using Python-Addins) that I have developed. All ...
0
votes
0answers
81 views

ArcGIS 10.2 with MatPlotLib Non-Blocking Plot

ArcGIS 10.2 ships with MatPlotLib 1.1.1 installed. I am trying to display a non-blocking plot window. Trials: Launch an interactive plot in a Tk window from a toolbox. This causes the plot to ...
2
votes
1answer
93 views

Opening PDF generated by Python AddIn using Report (*.rlf) file automatcally?

As a test I have: Authored a test.mxd with one layer called Localities in a single data frame called Layers Authored a test.rlf using View | Reports > Create Report of ArcGIS 10.2.2 for Desktop ...
2
votes
1answer
292 views

Python add-in won't buffer from output layer

I have a simple add-in script for Arcmap 10.1 to create a toolbar, select a layer from a drop down list of the current layers in the project, buffer that layer four-miles, then use the resulting ...
4
votes
1answer
125 views

Can ArcPy fill forms in Add-in interface?

I'm trying to build an ArcPy tool, which will ask the user to input some information (ID, Name, Address, Zip, etc.) first. My add-in interface is shown below, and hope to implement that once the user ...
0
votes
1answer
80 views

Add points to shapefile and display over map interactively using Python Add-Ins

I want to add points to a shapefile interactively using pythonaddins and display them over map. Points are added to shapefile but not to display. Please suggest how to fix this discrepancy. class ...
1
vote
1answer
45 views

How to display information when a certain dataset is loaded into QGIS?

I need to show the quality information of a dataset that was manually created by me, that is saved as a text file. The text file will "pop up" when the dataset is added into QGIS. I have no experience ...
1
vote
3answers
2k views

Synchronize Google Earth to ArcMap and vice versa

I found this old script that worked okay in 9.3, but since I've upgraded to 10.1 the VB code can't work. It basically allows you to quickly pan in Google Earth to find a feature, then you click on a ...
1
vote
0answers
55 views

Disable customized context menu for some cases using python

I create a python add-in tool to add new item to the context menu, but I want the new item enabled only when user right click on map when within a buffer of polyline feature. I haven't figure out how ...
4
votes
2answers
222 views

How to store Python Add-In menu customization/configuration in *.esriaddin file?

There is a gap in my understanding of Python Add-Ins. When I create a Python Add-In it is easy to see where buttons, tools and extensions are implemented as Classes in the *_addin.py script of the ...
-1
votes
1answer
253 views

What does [missing] on ArcGIS 10.2 for Desktop Python addin mean? [duplicate]

I need to load all layer names into a combo box. I did the same using esri site. But the tool is showing [missing].
2
votes
0answers
184 views

wxpython frame run from ArcMap loses focus almost immediately after it's shown

I'm trying to prepare a Python add-in using "Python Add-In Wizard". I want my add-in to perform some geoprocessing but first it should take data from a user and there's already a problem. I'm ...
1
vote
0answers
37 views

Get XY in different projection without changing data frame using python addin [duplicate]

I been searching for a way to use this http://forums.arcgis.com/threads/49273-getting-xy-from-mouse-click-using-python tool but print the XY in different coordinate system like WGS 1984 (decimal ...
0
votes
3answers
374 views

Can't Clear Combobox - Arcpy Addin

I'm using ArcGIS 10.2.1 and have written an Arcpy addin with multiple comboboxes and an "Unselect" button. The comboboxes run queries on the data and the button clears the selections. I need the ...
3
votes
1answer
173 views

ArcPy / ArcMap 10.2: How to report data to user?

I'm developing an arcpy addin with ArcMap 10.2 that outputs a feature layer based on user input. How can I display attributes from this layer in a MessageBox or other reporting mechanism? I don't ...
0
votes
1answer
146 views

How to select a feature and get its fields by mouse click using Python Addin in ArcGIS?

I'm building a python addin tool in arcgis and I would like to click a feature, say a polygon on the map, and get the polygon's attributes,i.e. ID=3,NAME = "CITY3"...It's similar as the arcmap tool ...
0
votes
2answers
56 views

A tool as part of a dialog box

I have a button created using Python Add-Ins which pops up a dialog box which is built using wxpython. I am wondering if I can place a tool (Select Layer by Location) within that dialog box to get ...
1
vote
1answer
221 views

Waiting for a python script tool to complete while using pythonaddin button

I have created a pythonaddin toolbar, with a button that executes a python script tool. This tool is in an ArcToolbox which has been stored in the Install folder of the addin. It executes and runs ...
3
votes
1answer
140 views

Using custom shortcut keys in ArcGIS while table of attributes is active window

I have a custom button which is made using python add-in. I add this button in arcgis desktop and assign a new short-cut key for this button. The problem is this button should be used while table of ...
18
votes
1answer
1k views

ArcGIS 10.1 Python AddIn Using Multiprocessing crashes ArcMap?

I would like to run a multiprocessing task from a python add-in tool. My issue is that the process keeps failing. Basically crashes ArcMap. Here is my basic code: def function(startOID, endOID, ...
0
votes
1answer
73 views

ArcPy - Add Layer from Cursor Selection

I am trying to add layers from the fields of a reference layer using select by location and a cursor. Also, want to prompt the user with a message box asking if they want to add the selected by ...
8
votes
1answer
456 views

How to integrate eclipse (PyDev) with Python Add-In development (ArcGIS 10.1)?

In ArcGIS 10.1, Python Add-Ins make various buttons, toolbars, extensions, etc, available to those already familiar with Python and OO in general. I am in the process of developing a Python Add-In and ...
3
votes
1answer
388 views

How to Select polygon feature in ArcMap and pass Selection into Python Addin?

I have a script that uses a arcpy's 'SelectByAttribute' syntax to choose a record in a polygon feature class. Following that, I do a 'SelectbyLocation' to select points from a feature class that lie ...
2
votes
1answer
1k views

Python Add in: Pass Selection from Combo Box into Definition Query

I am trying to pass the users selection into a definition query in an addin combo box python script. Basically, I have a feature class with a field called "SITE". I build a python list from that ...
7
votes
2answers
2k views

Select and copy features in ArcMap using Python add-in tool

I'm trying to add a tool to an add-in toobar to select features from an existing feature class and copy them across to another feature class. I need two tools, one for a point and one for a rectangle. ...
2
votes
1answer
422 views

How to buffer a point in a Python Add-In by ArcMap's selection tolerance?

In this answer to another Python add-in question I suggested supplying a search_distance to the SelectLayerByLocation function in order to allow points and lines to be selected by an intersecting ...
0
votes
1answer
242 views

Clip data and add layer to second dataframe using python Add-In

I want to clip a layer from data frame 1 and add it to the data frame 2 using the following script. But instead it just add all grids to current data frame 1 and don't update data frame 2. Please ...
4
votes
1answer
777 views

Refresh combo box in add-in

I've got an add-in with a combo box and want to refresh the list in the combo box after an event in one of the other tools in the same add-in toolbar. Can I call the combo box somehow to refresh it ...
0
votes
2answers
415 views

Python Addin Toolbar only works once

I am writing Python Addins for ArcGIS. I call a Python Toolbox, the Addin tool only works once in ArcCatalog when picked. If you pick it again nothing happens. import arcpy import pythonaddins import ...