Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
100 views

Python AddIn button init not working as expected

I have a toolbar with two buttons. It's a crude toggle that looks at a text file containing a single character whose values are either 0 or 1. When the file contents are 0, then button1 ResumeExports(...
mfrancis's user avatar
  • 125
1 vote
2 answers
2k views

AttributeError: DescribeData: Method FIDSet does not exist error

I am writing an add-in that in one step requires to find all layers that have selections. To achieve that I am using FIDSet property of Describe object. Unfortunately, I get an error: "AttributeError: ...
Kubson's user avatar
  • 624
3 votes
4 answers
5k views

Getting layer name of selected features with ArcPy?

I'm working on Python add-in that changes geometry of an object (polygon orthogonalization). The tool itself works properly when I give it an input line of layer name (or just drag layer from table of ...
Serge Norin's user avatar
2 votes
0 answers
210 views

intermittent failures with SelectByLocation in an ArcPy addin [closed]

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 ...
AMurray's user avatar
  • 194
2 votes
1 answer
355 views

Disabling Toolbar in Layout View using Python AddIn of ArcPy?

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. ...
user151631's user avatar
2 votes
1 answer
287 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, ...
user151631's user avatar
1 vote
0 answers
250 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 ...
S.Rai's user avatar
  • 309
1 vote
1 answer
932 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 ...
Akhil Kumar's user avatar
0 votes
1 answer
719 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 (...
Akhil Kumar's user avatar
3 votes
1 answer
560 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 ...
Akhil Kumar's user avatar
1 vote
1 answer
200 views

deleting Broken Source from arcgis toc with python addin

i have created one python addin tool. which create some layers in Memory. at the end of the script it deletes the In memory layer. but such layer still remains in TOC with a broken link how can i ...
Akhil Kumar's user avatar
5 votes
0 answers
7k views

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

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 ...
david_p's user avatar
  • 1,783
1 vote
2 answers
150 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 ...
Franziska0601's user avatar
2 votes
1 answer
383 views

Adding separator to ArcGIS python add-in menu? [closed]

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 ...
Mathiaskopo's user avatar
2 votes
1 answer
598 views

Adding separator in ArcGIS python add-in toolbar?

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 ...
Rauful's user avatar
  • 53
0 votes
1 answer
544 views

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

I'm 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 can'...
Alice's user avatar
  • 49
3 votes
1 answer
2k views

Using 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 ...
Rauful's user avatar
  • 53
2 votes
1 answer
883 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 ...
falcs's user avatar
  • 1,111
1 vote
1 answer
308 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 ...
Joey Carl's user avatar
1 vote
0 answers
494 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 ...
Joey Carl's user avatar
2 votes
1 answer
230 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, ...
XIY's user avatar
  • 447
1 vote
1 answer
228 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 buttons,...
XIY's user avatar
  • 447
3 votes
2 answers
627 views

Enabling snapping for OnLine method of ArcPy Python Add-In?

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 ...
crmackey's user avatar
  • 8,534
4 votes
1 answer
147 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 ...
Barrett's user avatar
  • 3,099
1 vote
1 answer
829 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 ...
Jay Laura's user avatar
  • 4,493
3 votes
1 answer
743 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 ...
PolyGeo's user avatar
  • 65.4k
2 votes
0 answers
213 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 ...
littleleaf's user avatar
1 vote
3 answers
2k views

Clearing Combobox in Python Addin?

I'm using ArcGIS 10.2.1 and have written an Python addin with multiple comboboxes and an "Unselect" button. The comboboxes run queries on the data and the button clears the selections. I need the "...
user29358's user avatar
3 votes
1 answer
344 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 ...
Vasyska's user avatar
  • 53
3 votes
1 answer
423 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'...
user29358's user avatar
6 votes
2 answers
1k 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 ...
PolyGeo's user avatar
  • 65.4k
1 vote
2 answers
972 views

Getting and comparing area of ArcPy geometry from extent object

I'm trying to get a numerical value for the area of a polygon that I am generating from an extent object. In this case, I am using the "onRectangle" function in the Python Addins for ArcPy. ...
amasephy's user avatar
  • 1,234
-2 votes
1 answer
2k 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]. import arcpy import pythonaddins class LayersComboBoxClass(object): """...
Santhosh Samban's user avatar
4 votes
2 answers
2k views

Automating a Python expression to calculate acres

I'm not new to GIS but very, very new to using Python and using scripts. I successfully use a Python expression !shape.area@acres! to update a field with acres in a feature class. What my users ...
bhoobler's user avatar
  • 131
8 votes
2 answers
10k views

Getting XY map coordinates on mouse clicks as input variables into a python script

This is my first time coding in python, so bear with me. I wrote a script to calculate an analytical solution to find the orientation of a plane based on three points. I'm using ArcGIS 10.1. # Input ...
Jefferson's user avatar
  • 111