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

learn more… | top users | synonyms

-4
votes
1answer
32 views

Getting nearest feature point from other features in point layer? [on hold]

How i can do this Get the nearest feature point from the other features point in a point layer Point feature class and make it in script tool
2
votes
0answers
69 views

intermittent failures with SelectByLocation in an ArcPy addin

ArcGIS 10.2, Windows 10 this is the line that fails: arcpy.SelectLayerByLocation_management(WRS_layer, "INTERSECT", gridLayer, "", "NEW_SELECTION") The WRS_layer is in a file gdb, the gridLayer ...
1
vote
1answer
43 views

Python Addin - Disable Toolbar in Layout View

I'm trying to disable a toolbar with nested menus and buttons when an mxd is in layout view, but it's not working. I also get no output in the ArcGIS python window when I switch to layout view. ...
2
votes
1answer
68 views

Script slow because of conditional statements

I have created a Python addin for ArcMap. It has two comboboxes. Combobox1: Search for facility by name. If there is one facility with that name the mxd zooms to the selected extent. Combobox2: ...
3
votes
0answers
24 views

Get results for each topology errors for Polyline or Points? [closed]

When you set up a topology to build topology rules for each polyline, or points, is there a way to get the results or summary for each Line Errors? For example, when you set "Must Not Overlap", ...
1
vote
1answer
61 views

Arcgis 10.2.2 Python Addin - Add Layer to Layout View?

I've developed a python addin toolbar that adds a desired layer file (chosen from a button nested in a menu in the toolbar) to the table of contents in a project. The functionality only works, ...
1
vote
0answers
42 views

Creating button on Python AddIn toolbar to run python script when clicked? [closed]

I need to create a button on toolbar of arcgis 10.2 who run a python 2.7 script created before when I click. Then I need to know if it's possible in this button that script write results to an excel ...
-1
votes
1answer
52 views

Insert Cursor not creating polygon

I used this code to create a polygon in my map, but the polygon isn't showing up anywhere. Does anyone know why? Here is my code: fc = "U:\BuildingFootprints.gdb\BuildingFootprintsCopy" cursor = ...
1
vote
2answers
54 views

Why my button in ArcGIS add-in extension shows as “Missing”?

I do not understand why my add-in toolbar and button shows up as "Missing" when I open ArcMap. I am not sure whether this is an issue with ArcMap 10.3 or whether I did anything wrong. Have anyone ever ...
0
votes
1answer
44 views

python addin manager validation of code

I have a toolbar (in ArcGIS) set up with two buttons using python addin manager, can someone help me make sure this works, when I run these buttons nothing happens. import arcpy import pythonaddins ...
0
votes
1answer
49 views

Arcpy 10.3 add ins [closed]

I am working with arcpy 10.3 and i want to build a add-in. Unfortunately it's not working when i add a button like: import arcpy import pythonaddins class ButtonClass1(object): """Implementation ...
0
votes
0answers
46 views

Multi-selection from Combo box in Python AddIn?

Is it possible to select more than one option from a combo box list in python Add ins for ArcGIS 10.x? Here is part of the code: def onFocus(self, focused): if focused: ...
1
vote
1answer
104 views

Zoom/Pan function in python addin tool

I have created one python addin tool which creates some points along a line, it works good. my problem is when my tool gets activated i am not able able to zoom/pan the map. map view just get stuck ...
0
votes
1answer
63 views

Creating polyline using mouse clicks with Python Addin tool?

Can somebody tell me how to create a line geometry by mouse click with python addin? I am using below code in python addin tool. class ToolClass8(object): """Implementation for Testmsg_addin.tool ...
0
votes
0answers
16 views

Create Polyline line by Mouseclick using python addin [duplicate]

I am trying to create polyline by using python Addin tool. but could not understand properly how it works. the Python Addin Tool is not much documented in Esri Website. so i am not able to understand ...
0
votes
1answer
34 views

Get filepath then append a feature class to that feature class Python Addins

I'm trying to use tool bar buttons (python addins) to add a filepath and then append another feature class (known to have identical schema, no test needed) to that filepath. My syntax isn't working ...
1
vote
0answers
57 views

Python Addin - Run script from button [closed]

I'm developing a Python Addin for ArcMap. This will consist of a button that will run another python script: import arcpy from arcpy import env import pythonaddins import os class ...
0
votes
1answer
82 views

ArcPy Python Addin Combobox How to leave a if-loop, when selection is found

ArcPy Combobox How to leave a if-loop, when selection is found I developed a Combox which: combines values from different featurelayers the User can select an ID or activitycode (acode) the ...
1
vote
0answers
72 views

How to automatically run python code at the time when a mxd is saved?

I am trying to find a way to execute a few lines of (preferably python-)code whenever I save a specific mxd (my template.mxd) I'm working with arcgis desktop 10.3.1 (advanced, all extentions) What I ...
3
votes
1answer
97 views

Creating Python Addin Button?

I want to create a Python AddIn button to execute a specific script. I know how to use the python addIn wizard and add the toolbar I created in my ArcMap. The trouble I am having is writing the script ...
3
votes
0answers
39 views

Recovering toolbar from disconnected window?

I've faced this problem many times. I created a python addin toolbar and installed it in ArcGIS 10.2 . I work on dual monitors in the office. If accidentally this toolbox is left on the secondary ...
2
votes
1answer
40 views

Can tools or addins created in ArcMap be published and used in ArcGis Online?

I'm attempting to build an interactive map that would be hosted in AGOL. It would be a network query, whereupon selecting a point feature from an "inlet" layer, the map would display the corresponding ...
1
vote
1answer
74 views

QGIS docutils install (path,pythonpath,pythonhome)

New to QGIS and Python. Have QGIS installed and working great on Windows, want to install and use Docutils -- Python Documentation Utilities (presumably all simple and small .py programs). I see ...
0
votes
1answer
66 views

Measure Point Along a Line

Looking to find Distance along a line(road) by a user input(Mouse Click). Here is my python code TESTED and works def onMouseDownMap(self, x, y, button, shift): mxd = ...
0
votes
0answers
43 views

Execute Built-In Command in ArcMap using Python Add-Ins Extension Event?

Is it possible to execute an ArcMap built-in command programmatically, using the Python Add-ins framework? Can ArcMap built-in commands be exposed to and executed using the event methods found in ...
1
vote
1answer
88 views

How do I load a .shp file using a button with ArcPy?

I have created a python addin where the user should be able to select a shapfile and then load, but I've not been able to put in the current workspace. import arcpy import pythonaddins import os from ...
1
vote
0answers
197 views

Is it possible to open *.dmp file and find out what cause ArcMap to crash?

Is it possible to find out what cause ArcMap to crash from *.dmp file? This files are located here: C:\Users\user\AppData\Local\ESRI\ErrorReports I have made some Python add-in to ArcMap wich ...
7
votes
2answers
219 views

Installing an ArcGIS add-in on several PCs

I usually do my python scripts and add them to ArcMap in the form of add-ins. First I launch the ArcGIS Python Add-In Wizard, create a project, a toolbar and the tool. Then, every time I do an ...
3
votes
1answer
59 views

Python Addin Wizard Combobox scripting help with zooming to selection

I am coding an addin to allow me to use 3 comboboxes to select specific regions within a state. Once these are all selected in the comboboxes I need a final button to zoom to the selected area, ...
1
vote
2answers
153 views

Python Add-In Dialog with Textboxes in ArcPy?

With Python Add-In Wizard I created a ButtonTool with which I: click in the map get the coordinates of the mouseclick-location in a dialog with textboxes I want to receive the coordinates in a ...
4
votes
3answers
287 views

ArcPy: Save and open mxd without closing ArcGIS

With Python Add-In Wizard I created a Button which: looks in a specific directory for the last created/modified folder (which is created with another tool) saves the current mxd with a new name in ...
1
vote
2answers
86 views

ArcGIS 10.2 Python-addin Zipfile locked

I made a Python-Addin-Button with the function to create a zip. Everything works fine, but after creating the zip-file, the zipfile is locked, when the mxd-Project is open. Any suggestions why I can't ...
0
votes
1answer
98 views

Invoking Context-sensitive Help for Python AddIn Button?

In an experimental Python AddIn that I've created using ArcPy from ArcGIS 10.3.1 for Desktop I have put some test help into my config.xml for a button called Button4: <Button caption="Button4" ...
1
vote
1answer
192 views

Open popup dialog window on button click in Python AddIn?

I'm trying to figure out a way to display an image in a dialog box that will be used for a help menu for my toolbar addins. The best scenario i've found is using the pythonaddins module and the ...
2
votes
0answers
134 views

How to add a separator to an ArcGIS python add-in menu?

In several places (e.g. Making separator and button menu in customized Toolbar using ArcObjects?) I have seen it mentioned that the way to add a separator for add-in menus and toolbars is adding the ...
1
vote
1answer
124 views

How to add separator in ArcGIS python add-in tool bar?

I am trying to separate two sets of button tools in a python add-in toolbar. I am trying to make a toolbar like existing arcmap toolbar where different classes of tools separated by "|". Can this be ...
0
votes
1answer
146 views

ArcGIS python add in to call python script for importing mdb data

im trying to change from a .net toolbar to a python toolbar in ArcGIS 10.2 and am having some difficulty. I have some stand alone python script which i know works and does what i need to do but i ...
2
votes
0answers
327 views

Accessing results of trace geometric network tool in Python AddIn? [closed]

I'm attempting to write a python addin to ArcGIS that will carry out numerous traces on a geometric network using user specified flags/barriers. The first trace works fine and I'm able to access the ...
0
votes
1answer
144 views

Arcmap Python add-in wizard run code on start-up/open document

I have the following code that I want to run each time a Arcmap is open: Windows 7 ArcMap 10.3.1 I have followed the instructions here: ...
0
votes
1answer
150 views

Is there a script to Python for Click to toggle selectable?

I cannot write a script using ArcPy (Click to toggle selectable). To make a layer unavailable for sampling! I just need to create a tool to automate several processes, one of them is the ability to ...
0
votes
1answer
117 views

ArcGIS Python Add-in using non-GUI window

Does anyone know how to create ArcGIS Python Add-in, that will allow after clicking on a feature, open a new window with a few pictures connected with the feature and then let the user change these ...
0
votes
0answers
89 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.
1
vote
2answers
327 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
150 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
94 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
410 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 ...
2
votes
1answer
558 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
244 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
309 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
65 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 ...