Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [python-addin]

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

0
votes
0answers
32 views

Problem with Python Addin in ArcMap 10.5.0.6491 - “Missing” [closed]

I built an Addin for ArcMap 10.5. Everything is OK when I install it on my computer. The problem is when other people, with the same system, are trying to use it - all of the tools have a "Missing". ...
1
vote
1answer
30 views

Spatial Join Using Python /ArcGIS Addin assistant

I have a point shapefile that contains all my field collected data, lat/long and all the field data collected during the season. The one thing not imported was the name of the Lakes these points fell ...
0
votes
1answer
28 views

Executing add-in from Python script?

I would like to execute the Curves And Lines add in from my Python script. Is there any interface for working with add-in inside of a Python script?
2
votes
2answers
133 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
vote
1answer
61 views

ArcMap python add-in button fails to load and displays Missing on the toolbar [closed]

I have a python add-in button shown as follows. It has to make a http request and use the values from the response. But whenever I use requests package, the add-in result in Missing button. import ...
0
votes
0answers
28 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
46 views

onMouseDownMap event with Line shape - Esri Addin Tool (python)

I'm having issues while developing a new addin - it seems that ALL mouse event handlers (except onMouseMove[Map]), doesn't work/blocked when I draw a line in on the map. I really need that ...
0
votes
0answers
56 views

Getting object info using Python in ArcGIS Desktop? [duplicate]

I want to get last clicked geometric object detailed properties: a Field-Value pair from a particular layer where this specific object resides using Python. In this case, I clicked on the triangle ...
1
vote
1answer
74 views

XLWT not writing to sheet in esri python add-in ArcMap 10.6

I have a tool I am converting to an ArcMap add-in. The problem is that the tool created a report and now the add-in report only contains the header row. I can't get the complete message box to fire at ...
0
votes
1answer
55 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
1answer
47 views

How to avoid ArcMap Python add-in combobox drop-down menu obscuring subsequent UI elements?

My ArcMap (10.5.1) Python add-in uses a combobox. When an item is selected from the combobox's drop-down menu, the expected actions are executed successfully. Sometimes these actions actions can ...
1
vote
2answers
65 views

Pythonaddins combobox advanced functionality

I made an Add-in for ArcMap that shows important news for our company. It is actually a toolbar with combobox and refresh button. It loads news from a text file located in our server and as every user ...
1
vote
0answers
42 views

ArcGIS Python Add-In Assistant not updated for ca. 4 years [closed]

For some time I had not used ArcGIS and I getting myself acquainted with the newer versions. Last time I had used 10.1 and now I am using 10.4.1. I had created some simple Python add-ins with the help ...
0
votes
1answer
184 views

python Get current workspace and then re-source to new SDE

I am trying to write some code that will get the current workspace name and if it matches a particular datasource path, it will re-path the SDE layers to the new database. Initially I had the code ...
0
votes
1answer
203 views

Move Python Add ins to ArcGIS Pro without having to learn a new programming language?

I have created a Python Add in 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 ...
3
votes
1answer
49 views

Trying to build lines by cursing through points

I am trying to create a tool that creates lines from selected point features. I am able to select the point features and create a search cursor to curse through them. I can message box attributes ...
0
votes
1answer
200 views

Adding built-in tools to python add-in toolbar

I want to make an ArcGIS Desktop add-in toolbar that has a regular ESRI built-in tool on it (like the buffer tool, or select tool, etc), instead of a custom tool. Is that possible or are we talking ...
4
votes
1answer
154 views

ArcMap crashing when plotting features with matplotlib few times via Python AddIn?

I made a 3D line plot Python add-in with matplotlib for ArcMap. After I execute this tool 3-4 times, ArcMap crashed. I have also executed it in the Python window, but the situation is just the same. ...
0
votes
1answer
151 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] ...
1
vote
2answers
72 views

Refreshing default parameter values in custom tool loaded by python-addin?

I've built a tool that will be used to populate required metadata in the attributes of a specific schema. This tool is in a python toolbox and called by a python addin button. The value entered for ...
0
votes
2answers
919 views

Dynamically adding items into one python addin Combobox from another?

I have two combo boxes. I am trying to add items dynamically into the second combobox from the first combobox's onSelChange(self, selection) event. due to some reason, this is not working. Here is my ...
0
votes
1answer
183 views

Python add-in button tool giving saying missing toolbar when I add it onto my map?

I am looking to create a button that when clicked, clears feature classes and tables created from another tool. I set up the button and installed it but every time I add it to the map with a toolbar ...
1
vote
1answer
219 views

Selection box from Python Add-in?

I would like to create a button using Python Add-ins that allows the user to select a point on the map then immediately bring up a user prompt checkbox that was created in a separate toolbox. I ...
-1
votes
1answer
33 views

Have user select various features that are a set distance from a point? [duplicate]

I want the user to be able to click on a feature on a map, and from there have the GIS automate a window that can come up to select features to see if they are in that set distance from the feature. I ...
0
votes
1answer
30 views

Build Add-In for older version ArcGIS

I am building ArcMap Add-Ins using ArcGIS 10.2 and I know that the AddIns won't work on lower versions of ArcGIS. Is it possible to build the AddIn for ArcGIS 10.0 or 10.1 using ArcGIS 10.2? I am ...
2
votes
1answer
68 views

ArcGIS 10.0 Addin install error?

I'm trying to create an Add-in in ArcGIS and used Python Add-in Wizard: http://www.arcgis.com/home/item.html?id=5f3aefe77f6b4f61ad3e4c62f30bff3b Everything went fine until i came to this step: when ...
1
vote
0answers
142 views

Tkinter crashing ArcMap from Python Add-In [closed]

ArcMap crashes every time I try to display a form using tkinter from my python add-in button. Are there any updated workarounds for this? I saw this from before, but couldn't get it to work: https:...
0
votes
1answer
134 views

Adding error message to python add-in?

I want to add an alert message to my python add-in(which will be like, when I click a button it will summon a warning message ). But I tried error message functions like : AddError, AddWarning and ...
0
votes
1answer
574 views

Python get selected features in arcgis

How can I edit selected Attribute only with python 2.7 I want to select points in arcgis and then when I click on the button created by my python script I want the value of the selected features ...
0
votes
1answer
42 views

Update python add in tool?

I made a tool in ArcGIS Python Add-Ins for my colleagues and right now wrote an update in main script. It would be easy to tell everyone to delete old add-in and install new one, but recently found ...
1
vote
0answers
95 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:...
2
votes
1answer
104 views

Turning off ArcMap Editor via ArcPy?

I have a problem with turning on or off ArcMap editor, using arcpy. When I try to turn on editor on arcpy I use this code on ArcMap Python window workspace = r'C:\tests\test.mdb' edit = ...
1
vote
1answer
56 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(...
1
vote
0answers
46 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 ...
2
votes
1answer
266 views

Make layer from selected features in python add-in

There is a problem in my arcgis add-in when I try to create layer from selected features of 'fc' layer, add-in button creates layer from all features of 'fc' layer not only selected features. When i ...
1
vote
0answers
100 views

adding new points with mouse click and adding them to the existing attribute table [closed]

I am quite a beginner with programming in python and I am struggling with my code. I would like to create new points(trees) on my map using mouse click and afterwards add them to the existing ...
1
vote
1answer
74 views

Creating edge and vertex identifiers for Python AddIn?

I can create multiple points using the add-in that I created. But the problem is, I don't know how to add edge and vertex identifiers to my tool (like in the picture). Here is my code : class ...
3
votes
1answer
157 views

Creating multiple points, using Python AddIn?

import arcpy import pythonaddins class point(object): """Implementation for point_addin.tool (Tool)""" def __init__(self): self.enabled = True self.shape = "NONE" def onMouseDownMap(self, ...
1
vote
2answers
639 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: ...
1
vote
2answers
67 views

How to terminate ArcMap add-in script?

I have made an ArcMap add-in which has the condition that only one feature can by selected a computed. If there are more features selected or no feature in the selection, a message will pop up that ...
1
vote
1answer
37 views

Select Features grayed out in PythonAddins toolbar

I've created a custom toolbar using the pythonaddins module. For ease of use I'd like to add the Select Features tool to the toolbar. The tool becomes grayed out as soon as I close the Customize ...
0
votes
1answer
191 views

Opening script in Toolset using GPToolDialog()?

I need to open a Python Script using GPToolDialog(), but the script is in a Toolset, not in the Toolbox main path. I tried many ways to solve but do not work, examples: Example 1: pythonaddins....
0
votes
2answers
48 views

Get text from user with pythonaddin

I'm trying to figure out the best way to get text input from a user through a pythonaddin. After watching this video it appears that a editable combo box is an option, but it's maybe not ideal due to ...
0
votes
0answers
19 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
1answer
183 views

Open Python Script with pythonaddins.GPToolDialog from Addin Wizard

I created a addin from python addin wizard with many menus and buttons. For one of these buttons I want to open a Python (.py) script from my Toolbox. I tried many ways but no one works. I want this ...
4
votes
0answers
98 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 ...
0
votes
0answers
33 views

Testing python addin without restarting ArcMap? [duplicate]

I'm just learning ArcGIS python addins. So far the best workflow I've found for development is, after the creation of the *.esriaddin file, opening the file in PKZIP, editing the embedded python ...
4
votes
0answers
44 views

Making a Python add-in work [duplicate]

I'm trying to make a python add-in work so that I can use it as a base to learn more about creating them. So far I haven't been able to make it work. I've downloaded and unzipped files as instructed ...
0
votes
1answer
32 views

Set Scale Button Doesn't Work

I'm trying to create a button that sets the map scale to 24000. I'm working in ArcMap 10.1 and my Python programming skill is rudimentary. I followed the Python Add-In instructions and the creation ...
1
vote
1answer
54 views

Python Addin only works if Python Window open in ArcMap?

Using ArcGIS 10.2.1 and Python 2.7 My python addin works in ArcMap if I open ArcMap with the Python window open, but if I open ArcMap without the Python window open - I get a "MISSING" tool error. ...