Questions tagged [python-addin]

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

Filter by
Sorted by
Tagged with
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 ...
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
1answer
16 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
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 ...
-1
votes
1answer
52 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
votes
0answers
36 views

Selecting Table Records (with subtypes) by Attribute using Python AddIn?

ESRI ArcGIS Desktop version 10.4.1, a file Geodatabase having Line feature Class "Trench" with two tables "T_DUCT" and "T_SUB_DUCT". Existing "python.esriaddin", creates subtype records of "Trench" ...
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 ...
1
vote
3answers
1k 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
1answer
68 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
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
2answers
49 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
1answer
49 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
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
1answer
179 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 ...
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 ...
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?
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
103 views

Getting ListFields from Autocad DWG using ArcPy?

I am trying to get LisfFields from AutoCad DWG, to arcpy Add-In, i have tried mxd = arcpy.mapping.MapDocument("CURRENT") Layers = arcpy.mapping.ListLayers(mxd) for Layers in Layers: ...
1
vote
1answer
34 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
38 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?
0
votes
2answers
1k 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 ...
2
votes
2answers
289 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
89 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
1answer
62 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 ...
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 ...
1
vote
3answers
2k views

Why can't I open this workspace?

I used python add in to make a tool bar in Arcmap that edits features on a map. It works on a file geodatabase, but not on an ArcSDE version one. I've been getting an FDO error: 0. The solutions that ...
1
vote
1answer
131 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 ...
1
vote
2answers
107 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
44 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 ...
3
votes
4answers
2k 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 ...
0
votes
1answer
181 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] ...
3
votes
1answer
77 views

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

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
1answer
360 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 ...
1
vote
1answer
471 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
56 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
295 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
180 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. ...
1
vote
1answer
312 views

Displaying graph plots with mouse click on map in ArcGIS for Desktop?

I need to build a tool/add-in for ArcGIS 10 which will display a time distribution plot at the location where mouse is clicked. The TOC consists of results of a simulation at different time instants. ...
1
vote
2answers
110 views

Problem with layer name

I need to write a code to read a polygon shapefile that contain three classes of land use (trees, urban, and crops) and I need to select only polygons of Trees. Here is my code to apply Select by ...
1
vote
2answers
91 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 ...
3
votes
2answers
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
vote
3answers
2k views

Combo box in python add-in for Arc - keep selected value visible

I have a python add-in for Arc using the addin-assistant. It populates values in one combo box based on the selection from the other. All of that works fine. What I can't figure out is how to keep ...
0
votes
1answer
221 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 ...
2
votes
1answer
255 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. ...
1
vote
0answers
127 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
288 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 ...
8
votes
2answers
5k views

Select and copy features in ArcMap using Python add-in tool

I'm trying to add a tool to an add-in toobar to select features from an existing feature class and copy them across to another feature class. I need two tools, one for a point and one for a rectangle. ...
3
votes
1answer
491 views

Calculate Field using Esri Python Addin

I am trying to select a polygon then it must automatically change (calculate) the status to "C". The tool seems to work in the background but nothing actually happens (the status is not updated). 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 ...