Skip to main content

Questions tagged [python-add-in]

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

Filter by
Sorted by
Tagged with
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
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 ...
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 ...
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 ...
0 votes
2 answers
51 views

How to start a Python script from a ArcGIS Pro AddIn?

I use C# for creating an AddIn for ArcGIS Pro 3.1. I got a feature request to start a python script (which is part of a toolbox) and pass some arguments. Unfortunately I found only descriptions about ...
2 votes
4 answers
4k views

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 ...
3 votes
1 answer
2k 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 that ...
0 votes
0 answers
27 views

ArcMap stops working when I click on add-in ArcMap [duplicate]

First creating the form with a tkinter. as in the code below. # -*- coding: utf-8 -*- import tkinter as tk import tkinter.font as tkFont from tkinter.ttk import Combobox class RestServis: def ...
1 vote
1 answer
415 views

Query error cannot concatenate 'str' and 'Result' objects

I wrote a simple script that iterates trough selected polygons and cuts the points of other layers, and export shapes and txt to different folders according to the zones defined by the polygons. The ...
1 vote
2 answers
970 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. ...
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)...
1 vote
1 answer
2k views

Moving Python AddIns to ArcGIS Pro

I have created a Python AddIn for ArcMap and it has been tested and functions very properly. However, I am looking online, and it seems like I have to go through a lot of processes just for it to ...
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....
2 votes
2 answers
798 views

Getting attribute of selected feature and passing it into URL

I am attempting to get a value from a selected feature in geodatabase, and pass that value into a URL link / query after the equals sign. Opening the link to the image viewer works, if I don't try to ...
0 votes
1 answer
152 views

Why geoprocessing changes output spatial reference, when input is geometry object?

I am trying to write an ArcMap 10.6 Python add-in, which cuts narrow places of polygons. In the script I work with geometry objects. Testing my add-in I noticed, when I use geoprocessing tools with ...
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 ...
2 votes
1 answer
395 views

arcpy Layer.setSelectionSet() not working in Python add-in

Using ArcGIS 10.8 (Desktop), I use a few lines of Python to set the selection in a layer called 'HNVKartierung' in a dataframe called 'HNVDaten' to a certain OID in order to then zoom to the selected ...
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 ...
-2 votes
1 answer
155 views

Obtaining XY coordinate when clicking on globe using ArcGlobe

Work in ArcGlobe and I want to calculate the coordinates of the globe latitude and longitude, but the coordinates from the mouse click is read from the screen, not the globe, because when I clicked on ...
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 ...
1 vote
1 answer
283 views

Adding message error box when parameters do not satisfy some conditions

I have 3 parameters in my tool, including para0, para1, para2. These parameters will be the user's inputs. I would like to display a message box if para0>para1 or para1>para2 or para2>para3. ...
3 votes
2 answers
1k views

Waiting for a python script tool to complete while using pythonaddin button

I have created a pythonaddin toolbar, with a button that executes a python script tool. This tool is in an ArcToolbox which has been stored in the Install folder of the addin. It executes and runs ...
-1 votes
1 answer
58 views

Converting ArcMap to ArcGlobe code using ArcPy [duplicate]

I have a code that should read the mouse coordinates, but it only works in ArcMap, can I somehow translate it into code for ArcGlobe, otherwise it gives an error: CreateObject cannot open map document....
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
1 answer
109 views

Measuring distance in ArcGlobe using Python AddIn

I want to make a Python script that will calculate the distance of the line I drew and output it in a special form, but I can't figure out what I'm doing wrong. import arcpy import pythonaddins class ...
1 vote
2 answers
375 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 ...
0 votes
1 answer
118 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....
1 vote
1 answer
263 views

Python add-in: pass selected layer of combo box to a button

I want to list layer names in a combo box and pass the selected layer name to onclick of a button. I could list the layer names in combobox but i don't know how to pass the name to a button. How can ...
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 ...
1 vote
1 answer
484 views

Python Add-In Combo Box Not Working Properly

I am trying to create a python add-in toolbar with a combo box that lists all of the [SITE_NUMBER] values in my "Site Inspection" polygon layer. The user should be able to select a [SITE_NUMBER] ...
2 votes
1 answer
68 views

Selection by Attribute ArcMap add-in

I am building an addin that will create a selection of multiple features that fit within the scope of multiple 'where' statements. All fields will be within the same layer, the layer will always be ...
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" ("...
0 votes
1 answer
64 views

Run code on pressing a key in Pythonaddins

I tried making an addin having below code where I want the user to press a predefined key and the "required_code" should run on the selected features. import arcpy import pythonaddins class Key1(...
2 votes
2 answers
1k views

Using two Python Addin Combo Boxes to choose feature class first then field from chosen feature class?

Last night a student from my Udemy course about writing Python AddIns asked for: some tips for using a combo box to filter another combo box. What I am trying to do is use a combo box to select ...
-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 ...
3 votes
2 answers
269 views

Should Python Add-In installed in map which is packaged be part of *.mpk?

Using ArcGIS for Desktop 10.1 SP1, I just created a map package (.mpk) from a map (.mxd) which had a Python Add-In (.esriaddin) installed. When I unpacked the .mpk the .esriaddin was neither ...
0 votes
1 answer
368 views

Creating point and updating features using spatial join and ArcPy

I have the following code that is in a tool. The tool creates a point on click, then auto sequential populates the "AddressID" field and also populates X_Coord, , Y_Coord. This part of the tool works ...
3 votes
1 answer
178 views

Displaying Image for built-in command added to Python Addin toolbar?

I'm trying to create a Custom Python Addin for ArcMap, which contains a custom tool, and also needs to have the standard 'Save As' button. After referring to https://blogs.esri.com/esri/arcgis/2012/...
0 votes
1 answer
45 views

Field not updating correctly by updatecursor() method

in my work, I have to find the features having duplicate values of field "ID" and leave just one identical value by updating blank values in rest of the features. My code for an add-in is: import ...
0 votes
1 answer
95 views

ArcPy to select by location not showing selected features in attribute table

I have a button where it first calculate no of features in a specific layer and then runs the "are_identical_to" and update "D". After that it checks if the no of counts in two layers is same? If not, ...
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 ...
-1 votes
1 answer
75 views

Unable to add toolbar in Python addin wizard

I am trying to create a customized tool in an ArcPy script. For that I want to add a tool in a toolbar in the Python addin wizard. I have downloaded the Python addin wizard and am trying to add a ...
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 "...
1 vote
1 answer
104 views

Get Path of my toolboxes ESRI addins Python 2.7

I need my toolboxes path. These are in the installation folder (toolboxes) but when using the function: dir_tools = os.path.join(os.path.dirname(__file__),r'toolboxs\parametros.tbx') result: C:\...
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
2 answers
106 views

Automate Access to all Tools in a Dynamic Toolbox in ArcMap?

Is there any way to automatically open a toolbox in ArcMap either from a model, a Python script or a Python Add-In, or similar? Or to otherwise make all of the tools in a toolbox easy to access for ...
0 votes
1 answer
1k views

Writing where_clause to Select Layer By Attribute for Python Add-in?

I have an add-in script for a toolbox in ArcMap that lets a user select a data frame, a layer within it, a field from the layer, an operator (= , > , <, etc.), and a value from the field. I'm ...
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 ...
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 ...

1
2 3 4 5 6