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

learn more… | top users | synonyms

0
votes
0answers
19 views

Select polygon feature(s) in ArcMap and pass this selection into Python Addin

Does anyone has an Pyhton example to select polygon feature (or features) in ArcMap and pass this selection into a Python Addin? The selection made by mouse will be better.
0
votes
0answers
28 views

Problems using da.UpdateCursor in python Add_in to Edit Feature Class

I am currently attempting to create a Python Add_in tool which will perform a set of geoprocessing operations resulting in new values for a specific !shape.area!acres calculation on a new layer and ...
0
votes
1answer
53 views

Making Python Add-Ins for ArcMap after installing ArcGIS Pro prevents double-click running of makeaddin.py at Python 2.x?

I've been working quite a lot with Python Add-Ins over the past week or so in a Windows 7 SP1 configuration with ArcGIS 10.3.1 for Desktop and ArcGIS Pro 1.0.2 installed. I also installed Python ...
2
votes
0answers
26 views

Using ArcPy Python Add-In Interval Caller to do auto-refresh?

I am using this code set called pythonaddin_interval_caller (written by Jason Scheirer) to do some map refresh every several seconds. The code was designed for arcgis python-addin. The benefit of this ...
2
votes
1answer
71 views

Why is Python AddIn toolbar showing all “Missing” tools/buttons?

I am horribly new to coding with python. I made a toolbar using the wizard and old bits of VBA code. I created a button to search by map number, a tool to calculate area from UI and a second tool ...
1
vote
1answer
69 views

How to use script tool in python add-in wizard

I am trying to use a script tool in python add-in wizard to make a toolbar which will have button options. The script tool is working fine in the toolbox and I am using them in arcgis 10.2.2. The ...
0
votes
1answer
67 views

Draw polygon with GUI

I'm looking to make a python add in tool for ArcMap to draw a polygon. Eventually I want the tool to also calculate the area and a bunch of other things but for now I would be happy just drawing an ...
3
votes
1answer
130 views

How to iterate through all geometries using a search cursor?

I would like to use a python add-in which uses a button click to iterate through each selected polygon one by one. The following code manages to zoom only to the first polygon. How can I adapt it to ...
2
votes
1answer
36 views

What is the easiest way to test python Add-Ins with ArcGIS 10.1 +? [duplicate]

I am trying to develop a Python Add-In for ArcGIS 10.3 and finding debugging pretty laborious. At the moment when I make a change to my python script I have to do the following: Close ArcMap Delete ...
0
votes
0answers
64 views

Arcpy strip '{ and ]' from list return

I have a static list that I would like to pull values from and use in a query. I can populate the list dynamically from the data but the set is quite large and I think having a static list from a csv ...
0
votes
2answers
70 views

Arc Python add in - dynamic combo populate

I am attempting my very first python add in. what I would like it to do is look at a feature class, look through the town field. when the user selects a town I want the next combo box to populate with ...
2
votes
2answers
56 views

How to add a perpendicular line to the start & end nodes of every polyline? [duplicate]

Is there a way to add a perpendicular line to the end node of each polyline? Something like this:
2
votes
2answers
79 views

How to write a vector layer as tab delimited txt file using PyQGIS?

I'm using the following QGIS 2.8 Python code to save results to a txt file QgsVectorFileWriter.writeAsVectorFormat(inputLayer, "D:/dstest/my_csv", "CP1250", None, "CSV",True) I would like to be ...
0
votes
1answer
96 views

pythonaddins module

I've posted this question on GeoNet 4 days ago. At the moment I've received no answers and no comments so I thought I'd try here as well. https://geonet.esri.com/activity#nPLoc=/inbox I have a tool ...
0
votes
3answers
175 views

Combo box in python add-in for Arc - keep selected value visible

This seems like a basic question that I cannot figure out. I have looked through other questions on gis.stackexchange and not found it, so forgive me if this is elsewhere. I have a python add-in for ...
0
votes
1answer
176 views

Creating Tkinter dialog box in arcpy?

I would like to create a dialog box which pops up when the user click on a button from a Python Add-In toolbar. The user will navigate to their preferred file and select any shapefiles they wish to ...
2
votes
1answer
116 views

Making Python Add-In using tools built in ModelBuilder?

I have made a set of tools in a toolbox using ArcGIS 10.2 using the model builder. I would like to distribute them as a tool bar, and so created a ArcGIS Python Add-In I was hoping that I could ...
3
votes
1answer
96 views

Number of items in a Combo Box

I'm developing a Combo Box for an ArcMap toolbar, that at present simply lists all of the layers that are in the table of contents. However the height of the drop-down menu is very small, and I cannot ...
1
vote
1answer
277 views

Using Python add-in wizard with ArcGIS 10.3 for Desktop?

I'd like to create an add-in for ArcMap (ArcGIS 10.3) using Python. Unfortunately, the wizard does not seem to have been updated for 10.3, which is the only version Esri provides for download at ...
1
vote
1answer
154 views

Limit of Python Add-in for Arcmap?

I am running ArcGIS 10.2.2 Version 10.2.2.3552, using ArcMap. I've watched the tutorial here (http://training.esri.com/Courses/ts_PythonAdd-Ins/player.cfm?) and I'm still not understanding this. I ...
-1
votes
1answer
45 views

Python add-in works once only?

There is a sample in ArcGIS 10.1 help on creating a add-in using python. This works only once when a layer is selected in combobox, if i need to use this functionality again it does not work and i ...
1
vote
0answers
82 views

Update Layer Symbology based on 1 field with changing data

I am running ArcGIS 10.2.2 Version 10.2.2.3552, using ArcMap. I have quite a big task here and before i attempt it i want to know if it is even possible. I've looked up some similar questions on ...
3
votes
2answers
106 views

How to trigger a Python script from an ArcGIS Desktop “save” operation?

Similar to the question Run a Python Script when opening an MXD, I'm looking for a way to run a Python script that is triggered when the "Save" command/button is pressed. I've read the Creating a ...
0
votes
2answers
54 views

Python Addin installation on server for multiple users

This may not be specific to Python Addin or could be related to Microsoft Windows Server 2003. I have installed a Python Add-in of ArcGIS for Desktop on server for to be used by multiple users. But it ...
3
votes
2answers
230 views

Finding the Python script used by a custom toolbar button in ArcMap

I've been asked by somebody at work to design a toolbar add-in that works just the same as an existing one, but with a different set of data. However, the person who wrote the original add-in for him ...
2
votes
1answer
129 views

python application extension onCreateFeature

Trying to populate certain attributes as soon as a feature is created. I have tried the python add-in application extension function "onCreateFeature", which does get triggered when a feature is ...
1
vote
0answers
45 views

Open GP tool as batch using pythonaddins

I'm working on a python toolbar addin and want to open a custom script tool as a batch process upon clicking a button. Is this possible using pythonaddins.GPToolDialog()? I can open as batch by simply ...
2
votes
2answers
191 views

How can I leverage ArcGIS Online sign in credentials/dialog box in a python add-in for Desktop?

When a user has signed in to their ArcGIS Online account in ArcGIS for Desktop (File > Sign In) they have access to their AGOL maps and services and have the ability to publish services and run GP ...
2
votes
1answer
38 views

Is there a python version of qTuio? [closed]

Is there a python version of qTuio? qTuio is implemented in C++. However, I am currently trying to use pyqgis due to problems with C++ environment (I cannot even create a raster layer). Any help is ...
2
votes
1answer
64 views

Changing the active tool in an ArcGIS Python Add-in Tool Palette?

I have an ArcGIS Python Add-in project with a tool palette that contains a dozen different tools. I would like to be able to change the 'active tool', i.e. the tool that is visible on the toolbar, ...
1
vote
1answer
162 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
54 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
234 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 ...
2
votes
2answers
203 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 ...
2
votes
1answer
197 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
88 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 ...
3
votes
0answers
279 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 ...
1
vote
1answer
241 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
137 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 ...
3
votes
1answer
81 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
78 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 ...
3
votes
1answer
346 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
101 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
406 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 ...
6
votes
2answers
176 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 ...
2
votes
1answer
233 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
68 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
191 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
193 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 ...
5
votes
1answer
283 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 ...