The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [python-addin]

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

24 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
131 views

Check for mxd write access with python addin

I'm looking for a way to check for write access to an mxd upon the initiation of a python addin tool. My tool should only be enabled if the user has write access to the mxd. I thought there was a way ...
4
votes
1answer
997 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 ...
3
votes
0answers
65 views

Making ArcGIS Python Add-In Extension immediately functional after install?

I have a Python add-in that includes an extension class. The only purpose of this extension is for some buttons in the add-in to be automatically enabled/disabled depending on if there are relevant ...
3
votes
0answers
324 views

ArcGIS pythonaddins.ProgressDialog inconsistent progress bar drawing

I am trying to use pythonaddins.ProgressDialog in a Python add-in. I am on ArcGIS 10.4. I will need to perform several steps that will take some time. To show how much work is done, I plan to use a ...
3
votes
0answers
3k 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 ...
2
votes
0answers
177 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 ...
1
vote
1answer
24 views

Using two Python Addin Combo Boxes to choose Folder then Layer

I am trying to create a Python add-in for ArcMap for users to quickly select layer files from within several different folders. This will require 2 combo boxes. User selects the folder from the first ...
1
vote
0answers
31 views

Executing Select Layer By Attribute in Python Add-in Toolbar (ArcMap)

I'm having trouble with the button class of my code: class OKButton(object): """Implementation for ok.button (Button)""" def __init__(self): self.enabled = True self.checked = False def ...
1
vote
0answers
18 views

Jump to specific folder in catalog pane using Arcpy

I am developing a Python add-in for ArcGIS Desktop. As a part of this add-in there is a button that I would like to jump me to specific folder in the Catalog Window. Is there any way to do this?
1
vote
0answers
125 views

Python Window errors showing when opening up Commands tab in Customize related to Python Add-In?

I'm getting a number of errors in the Python Window on ArcGIS 10.3.1 when going to Customize > Customize Mode... > (Commands Tab) as seen below. The majority of errors are coming from a Python Add-in:...
1
vote
0answers
56 views

Working with python add-in while editing is on

I created a python add-in which makes analyses like spatial join, update cursor and make feature layer. But when editing is open for a layer. I get this error. Line 289, in onClick for rec in ...
1
vote
0answers
386 views

Pythonaddins Message Box encoding problem

I've been trying to create a MessageBox with accented characters. To do so, I used the decode() and encode() functions. The code is part of a Python Toolbox. pythonaddins.MessageBox("ééàà".decode('...
1
vote
0answers
146 views

Managing the state of Python Add-In extension

I have a python add-in that includes a toolbar and an extension. A button on the toolbar should turn extension on and off. A code for the button: class Switch(object): # Implementation for ...
1
vote
0answers
489 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 ...
1
vote
0answers
468 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 ...
1
vote
0answers
266 views

How use DataFrame Geographic Transformation User Interface with ArcObjects?

I am bringing data from SQL Server into ArcMap with ArcObjects as a Query Layer. If I do this manually, a 'Geographic Coordinate System Transformations' UI pops up. I would like the same thing to ...
1
vote
0answers
100 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 ...
1
vote
1answer
180 views

Python AddIns Installation Tool Not Showing After Double Clicking on makeaddin.py

I am using Python Add-In Wizard with ArcGIS 10.4.1 but after getting the files I am not able to create installation Wizard! I tried to create the wizard by double clicking on the looks like ...
0
votes
0answers
29 views

Undo button undoes last couple of edits instead of last one in ArcMap?

I've made an add-in in ArcPy, using add-in assistant, to update attributes of selected features. It has two buttons to populate either 'U' or 'D' as attribute. The Python code is: import arcpy ...
0
votes
1answer
33 views

Undoing Operation while editing in ArcMap with Python Add-ins?

Using ArcPy Add-ins, I can issue a message, but I don’t understand how to cancel or undo deleting an object. Is it possible? class ControlUniq(object): """Implementation for addin1_addin....
0
votes
0answers
27 views

Delivering script tool using toolbar vs addin button?

I am having trouble determining how to best deliver my script tool for use in ArcMap 10.7. I can create a toolbar that has my custom script tool in it. That is easy. The trouble is I can't get the ...
0
votes
0answers
29 views

Don't allow to save edits in the table untill the field will be populated in ArcGIS with pythonaddins

I have a table and some fields there(OBJECTID, UN_ID, for example).Table is not empty. how to prevent an edit session from stopping or saving until the field will be filled. I wrote an extension ...
0
votes
0answers
30 views

Starting ArcMap Python Add-in as service?

Is it possible to start Python add-in as a service which keeps running while in ArcMap? I am designing something using a add-in to receive socket messages from out of ArcMap and do some operations ...
0
votes
0answers
22 views

pythonaddins interactive output registry to a shapefile recursively

I am using pythonaddin's onMouseDownMap to get flow paths interactively and add each line drawn to a shapefile. "line" shapefile is created each time using arcpy.RasterToPolyline_conversion whenever I ...