Questions tagged [python-add-in]
A python extension to a software program that performs a custom task.
31
questions with no upvoted or accepted answers
6
votes
1
answer
1k
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 ...
5
votes
0
answers
218
views
Check for mxd write access with python addin
I'm looking for a way to check for writing access to an mxd upon the initiation of a python AddIn tool. My tool should only be enabled if the user has writing access to the mxd. I thought there was a ...
3
votes
0
answers
164
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
0
answers
539
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 ...
2
votes
0
answers
210
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
0
answers
30
views
Python Add-in Shows up as Missing then Works after Logging in Again Through Citrix
I have created a Python Add-in that works well when installing it through the add-in installer or when adding the add-in directory folder to the registry string (Computer\HKEY_LOCAL_MACHINE\SOFTWARE\...
1
vote
0
answers
112
views
ArcGIS Python Add-ins Password Input
I am working on a ArcGIS Python Add-ins which need user login to get data. Rather than exposing user's password in a combobox forever, we need to have a password input box which only show * while user ...
1
vote
0
answers
38
views
Elevation profile add-in for ArcGIS not producing graph
I am trying to create an elevation profile graph using a river line shapefile and the add-in (with ArcMap 10.4.1). So I select my feature, click the "Create a profile for the selected feature" ("...
1
vote
0
answers
124
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
0
answers
23
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
0
answers
245
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
0
answers
75
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
0
answers
719
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
1
answer
351
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 ...
1
vote
0
answers
180
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
0
answers
638
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
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 ...
1
vote
0
answers
287
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
0
answers
105
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
0
answers
58
views
Python Addin Script not working
I have a python script which runs fine. I am creating toolbar and button. When I copy my script into the addin python file. it does not run.
import arcpy
import pythonaddins
class ButtonClass1(object)...
0
votes
0
answers
228
views
Realizing arcpy.mapping.MapDocument("CURRENT")
I am curious as to how arcpy.mapping.MapDocument("CURRENT") works. I used to execute highlight in the sub thread, but didn't work.
Does it only work in the main thread (including arcpy....
0
votes
0
answers
92
views
arcpy.mapping.MapDocument("CURRENT") not working in sub thread
I want to create a customize tool in ArcMap by Python Add-in wizards.I found that arcpy.mapping.MapDocument("CURRENT") does not work in the sub thread.
How can I call main thread to execute ...
0
votes
0
answers
21
views
Copying an object with attachments from a distributed database to a distributed one
I wrote a addins to transfer selected objects from one distributed database to another. Each layer participates in a geographic service (MapService).
The program works successfully sometimes, and ...
0
votes
0
answers
39
views
How to add a save and load button in a Python-addin ArcGIS?
I would like to generate a tool in Python-Addin ArcGIS as the image attached. I also like to generate the save and load button in the tool. My purpose is that when the user chooses the range ...
0
votes
0
answers
39
views
Error handling for comboboxes in a Python Addin using ArcGIS for Desktop 10.5
I'm creating an addin that contains two comboboxes and a button, the latter of which adds data to the current map based on user selections in both comboboxes. Both comboboxes have pre-defined lists ...
0
votes
0
answers
44
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
0
answers
67
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
0
answers
37
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
0
answers
28
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 ...
0
votes
2
answers
249
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 ...
-1
votes
1
answer
942
views
tkFileDialog.askopenfilename in python addin crashes ArcMap, how to avoid it?
I had tried to create an interactive tool that takes features selected in the active ArcMap view, allows user to pick a file and then attach it to selected features.
However, everything ends at ...