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

learn more… | top users | synonyms

2
votes
1answer
28 views

Opening PDF generated by Python AddIn using Report (*.rlf) file automatcally?

As a test I have: Authored a test.mxd with one layer called Localities in a single data frame called Layers Authored a test.rlf using View | Reports > Create Report of ArcGIS 10.2.2 for Desktop ...
4
votes
1answer
59 views

Can ArcPy fill forms in Add-in interface?

I'm trying to build an ArcPy tool, which will ask the user to input some information (ID, Name, Address, Zip, etc.) first. My add-in interface is shown below, and hope to implement that once the user ...
0
votes
1answer
42 views

Add points to shapefile and display over map interactively using Python Add-Ins

I want to add points to a shapefile interactively using pythonaddins and display them over map. Points are added to shapefile but not to display. Please suggest how to fix this discrepancy. class ...
1
vote
1answer
43 views

How to display information when a certain dataset is loaded into QGIS?

I need to show the quality information of a dataset that was manually created by me, that is saved as a text file. The text file will "pop up" when the dataset is added into QGIS. I have no experience ...
1
vote
0answers
28 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
0answers
37 views

Get XY in different projection without changing data frame using python addin [duplicate]

I been searching for a way to use this http://forums.arcgis.com/threads/49273-getting-xy-from-mouse-click-using-python tool but print the XY in different coordinate system like WGS 1984 (decimal ...
0
votes
3answers
186 views

Can't Clear Combobox - Arcpy Addin

I'm using ArcGIS 10.2.1 and have written an Arcpy addin with multiple comboboxes and an "Unselect" button. The comboboxes run queries on the data and the button clears the selections. I need the ...
0
votes
1answer
70 views

How to select a feature and get its fields by mouse click using Python Addin in ArcGIS?

I'm building a python addin tool in arcgis and I would like to click a feature, say a polygon on the map, and get the polygon's attributes,i.e. ID=3,NAME = "CITY3"...It's similar as the arcmap tool ...
0
votes
2answers
34 views

A tool as part of a dialog box

I have a button created using Python Add-Ins which pops up a dialog box which is built using wxpython. I am wondering if I can place a tool (Select Layer by Location) within that dialog box to get ...
0
votes
1answer
122 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 ...
3
votes
1answer
86 views

Using custom shortcut keys in ArcGIS while table of attributes is active window

I have a custom button which is made using python add-in. I add this button in arcgis desktop and assign a new short-cut key for this button. The problem is this button should be used while table of ...
3
votes
1answer
131 views

ArcPy / ArcMap 10.2: How to report data to user?

I'm developing an arcpy addin with ArcMap 10.2 that outputs a feature layer based on user input. How can I display attributes from this layer in a MessageBox or other reporting mechanism? I don't ...
2
votes
1answer
83 views

ArcPy Clip Data Frame To Geometry

I have made an ArcPy add-in that assists a user by adding layers from a nominated fGDB to their map based on a nominated extent. I wish to add a button that changes the data frame properties to clip ...
3
votes
2answers
103 views

How to store Python Add-In menu customization/configuration in *.esriaddin file?

There is a gap in my understanding of Python Add-Ins. When I create a Python Add-In it is easy to see where buttons, tools and extensions are implemented as Classes in the *_addin.py script of the ...
0
votes
1answer
43 views

ArcPy - Add Layer from Cursor Selection

I am trying to add layers from the fields of a reference layer using select by location and a cursor. Also, want to prompt the user with a message box asking if they want to add the selected by ...
5
votes
1answer
155 views

Arcpy Pythonaddins Equivalent of arcpy.GetParameterAsText

I've build a neat little search arcpy script. The user opens any mxd, zooms to a location, chooses a corporate fGDB, and runs the tool. The user gets a list of all the populated feature class that ...
0
votes
1answer
111 views

Creat point and update featuers spatial join

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 ...
-2
votes
1answer
240 views

ArcGIS 10.1 Custom Toolbar issue with addin wizard

I am having some issues. In ArcGIS, I created a custom toolbar (with the python addin wizard) to do the following: 1. Button to connect to feature class, 2-5. A series of comboboxes to view, edit data ...
-2
votes
1answer
256 views

ArcGIS Python Add in: Pass Entry from Combo Box (in Toolbar) to mdb [duplicate]

How do you update the python addin wizard code to write directly into access or pgdb? I have a combo box and need to have my users enter data into the combobox to write into the database. Can someone ...
1
vote
1answer
35 views

How to do “random” distribution of certain classes to certain amount of polygons with respect to spatial constraints

I have a polygon layer. Now, I would like to assign/allocate/classify these Polygon into 13 different classes respecting spatial constraint, in my case: neighboring polygons (sharing line or nodes) ...
4
votes
1answer
121 views

Is it possible to store a default symbology layer in an arcpy add-in?

Since arcpy is limited in how symbology can be manipulated, I was curious to know if a symbology layer can be stored in an arcpy add-in. Does anyone know if it is possible to store a .lyr file, or ...
1
vote
0answers
118 views

building a progress dialog with pythonaddins in ArcMap

As a component of my add-in, I compute a bunch of summary statistics when the user clicks a button. This can take a while to process and it can appear as though the program has stopped responding. I ...
5
votes
1answer
185 views

How to get the editor's current layer in ArcPy?

In ArcObjects, it is possible to retrieve the currently selected editable layer using IEditor3.CurrentTemplate.Layer, or IEditLayers.CurrentLayer. Is it possible to do the same thing in ArcPy? In ...
4
votes
1answer
454 views

How do I create a polygon with an ArcGIS 10.1 python addin

I'm looking for some code samples, or help with code to get me started. I've built a python addin menu which I would like to use to create polygon features in a specific layer in my edit session. ...
3
votes
1answer
78 views

Python objects in my ArcMap addIn aren't instantiated

I've got a weird problem. My addin throws problems intermittently where it doesn't recognize buttons or tools when I try to toggle the visibility in my code. It seems as though the objects aren't ...
3
votes
3answers
386 views

How to create button that calculates acres on selected polygon features?

I'm looking to create a simple button that calculates acres on selected polygons and can't quite find what I'm looking for. I read through this thread: automating a python script..., but found it ...
-1
votes
1answer
168 views

What does [missing] on ArcGIS 10.2 for Desktop Python addin mean? [duplicate]

I need to load all layer names into a combo box. I did the same using esri site. But the tool is showing [missing].
1
vote
0answers
114 views

Python add-in user input not working ArcGIS 10.1

I made an add-in in python and it works fine on my machine, but on other machines it spits out an error, sometimes for Tkinter widget and when I use Tkfiledialog using a separate file, it spits out ...
4
votes
2answers
342 views

Automating a Python expression to calculate acres

I'm not new to GIS but very, very new to using Python and using scripts. I successfully use a Python expression !shape.area@acres! to update a field with acres in a feature class. What my users ...
6
votes
4answers
378 views

accessing the output of a python script tool dialog ArcGIS 10.1

Hi I have a a fairly simple script tool dialog which has been setup to get 6 parameters from the user and return them as the tool output as a list. the aims is that the out put would then be used ...
4
votes
1answer
154 views

Using onRectangle for user input in ArcMap/ESRI addin

In an effort to try to add user input to my project, I'm developing an esri python addin to generate rectangles to my map. I'm on step one now, just exploring the addin functionality. I tried ...
1
vote
0answers
63 views

Access to python addin objects/variables in python window

Following up on this question: Can a Python script be executed from a .NET AddIn and also write its standard output and geoprocessor messages to the ArcMap Python Window? Is is possible to access ...
2
votes
0answers
133 views

wxpython frame run from ArcMap loses focus almost immediately after it's shown

I'm trying to prepare a Python add-in using "Python Add-In Wizard". I want my add-in to perform some geoprocessing but first it should take data from a user and there's already a problem. I'm ...
6
votes
2answers
1k views

Getting XY map coordinates on mouse clicks as input variables into a python script

This is my first time coding in python, so bear with me. I wrote a script to calculate an analytical solution to find the orientation of a plane based on three points. I'm using ArcGIS 10.1. # Input ...
1
vote
0answers
38 views

How to find out which layer had a Selection made on it? [duplicate]

If the user makes a select using arcpy.SelectByAttribute() or arcpy.SelectByLocation() how do you find out which layer they made the select so you can use arcpy.SearchCursor(layer)?
0
votes
1answer
78 views

Is there an event handler for a Selection being made using ArcPy?

I want to be able to capture an arcpy.SelectByAttribute() or arcpy.SelectByLocation() event being triggered. There doesn't seem to be an extension that is able to handle this. Is there a way to do ...
1
vote
2answers
235 views

How do you get all the results from a Selection made by Attribute or Location using ArcPy?

Using arcpy I'm trying to get the results of a selection, or what is currently selected as a list. Basically I'm attempting to build an addin which on click will either perform an operation where I ...
2
votes
0answers
45 views

Building Arc add-ins without needing to restart Arc [duplicate]

One of the things that annoys me the most with trying to use the Arc add-in wizard is that I need to restart Arc every time I want to test something. This is especially annoying if I've got syntax ...
2
votes
1answer
64 views

Why does Fetch Python Plugins responded with only the installed ones?

I use QGIS 1.8. Whenever I demand to install plugins through Fetch Python Plugins it displays only those the already installed. I couldn't find for example; point sampling, group stats and photo2shape ...
2
votes
1answer
74 views

How to reference path to file that is in edit session from Python AddIn?

I am creating a Python addin button and I would like to reference the path to the layer that is currently in an edit session to the code in the addin button. This way users will be able to use the ...
3
votes
1answer
181 views

Pythonaddins SaveDialog filter

If you look in the ArcGIS 10.1 help, the Pythonaddins module SaveDialog shows the following: SaveDialog({title}, {name_text}, {starting_location}) But if you open the python window in ArcMap, you ...
0
votes
0answers
129 views

Assign spatial reference for 1000 different ECW raster datasets using 1000 different *.prj files through python programming or .net

I am having 2000 ECW raster datasets without spatial reference and also I have 2000 *.prj files in another folder. I know only the way as right click on raster datasets-->properties-->Spatial ...
1
vote
3answers
1k views

Synchronize Google Earth to ArcMap and vice versa

I found this old script that worked okay in 9.3, but since I've upgraded to 10.1 the VB code can't work. It basically allows you to quickly pan in Google Earth to find a feature, then you click on a ...
3
votes
2answers
104 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 ...
3
votes
2answers
297 views

How to control state of buttons in Python Add-In?

I have bunch of buttons to perform separate tasks within a Python Add-In. Buttons are greyed out and required to be enabled after initial tools run. In the following example, tool1 is turned off after ...
1
vote
0answers
250 views

Python Addin toolbar- Environment mask parameter not being recognised?

I've created a button on a python addin toolbar which uses the selected features from the selected layer in the TOC, creates a feature layer from that selection and uses that feature layer to set the ...
2
votes
2answers
345 views

Run Python child script using Python Add-In button class?

I have a Python script which I want to execute using Python Add-In button class. Right now, I am using following: class child(object): """Implementation for Toolbar_addin.button2 (Button)""" ...
1
vote
2answers
152 views

How to get an attribute of the selected feature and pass it into a URL?

As a total Novice with Python, I thought 2 weeks would be enough time to learn how to build some tools for our GIS... I was wrong and I'm running up on a deadline. I am attempting to get a value ...
1
vote
2answers
189 views

access attributes of one class for use in another class in python add-in

I want to get combobox attribute 'dem' and use it for further processing in class ExtentData. But I am not sure how to get attributes from one class to another for processing in pythonaddin. In ...
2
votes
1answer
197 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 ...