ArcGIS Python Addins - Am I doing this right?
Hey all, I have been developing a few python addins and I'm just wondering what is the best way to update the addin anytime I edit the script. Currently, if I make an edit to the script, it seems like...
View Articleschema locks with fGDB and python
Just wondering if anyone else has experienced the same as myself and if you have any thoughts/ideas. I run a python script in a CMD shell running Windows 7 (ArcGIS 10.1). The script sets the workspace...
View Articleopen Identify Window for a selected feature?
Hi, Is there a way to automatically open the "Identify window" (usually opened by clicking the "Identify tool") for a selected feature? And to set its properties? Any suggestions are most welcome....
View ArticlePython Toolbox and Parameter as WMS Map
Hejhej, I have a question regarding the value of objects of datatype "WMS Map" (or "DEWMSMap" since 10.1sp1) in a python toolbox. How can I extract the server address and the layer name of this object?...
View ArticleIs there a Zoom to Layer command in Python?
I'd like to be able to add a layer to a mxd, this layer changes weekly (crime points) so I'd like to be able to zoom to the layer but I can't find a command to do it. Is there a command to Zoom to Layer?
View ArticleDeveloping a tool using python based on user's input that runs in ArcGIS 10/10.1
Hi, If anyone can help me with a python script to create a tool that runs within ArcMap(10.1). I have three feature classes - a point, line, and a poly. I want to import (combine) information from the...
View ArticleLabels in .lyr file
I'm converting an older GP task made using MB to Python. In the original, data was saved to disk (.shp) and rendered with a layer file (.lyr). Labels were displayed in the output. I've updated the .lyr...
View ArticleRenaming a shapefile using values from a text field
Does anyone know how I might create a python script that would use an attribute value from a table and use that value as a file name prefix when renaming a shapefile? For example, as part of my script...
View ArticleInstalling RPy in Windows - Versioning Error
Any Hello, Does anyone know what versions of RPy, R, and Python are compatible? I'm hoping to access RPy for a small, but important, part of a project. I have R 2.1.5.2, Python 2.7.2 in ArcGIS 10.1,...
View ArticleChange stretched to colormap symbology for raster layer
Hi Experts I have used python codes to add some raster layers to my map. when the script adds rasters to the map it changes their symbology from colormap to Stretched. How can I change the raster...
View ArticleautoIncrement() + text??
I have just figured out how to autoIncrement a field but I need to add a couple of text characters to each entry or record. It is a small collection but I'd really not like to have to add it to each...
View ArticleIs Python my solution????
I have a condition as to where I need to calculate a date field based on another date field. I need to be able to calculate a date range of 12-15 months based on the original field. Question one, can...
View ArticleAnnotation classes not visible after adding an annotation layer
I have an annotation feature. I can see its annotation classes when I drag-and-drop the feature from ArcCatalog to ArcMap. But I can't see the annotation classes when I add the annotation feature using...
View ArticleERROR: "The table was not found. [VAT_CostDis_src_1]" ? X-Posted SA
I have written a Python GeoProcessing task for running Cost Distance and Cost Path analysis. It runs sometimes and errors other times. This is the error that it normally returns when trying to run the...
View ArticlePolyline Creation in Python
Hi, I have a spreadsheet with a Line ID, a Begining point X,Y,Z and End Point X,Y,Z and even a distance plus other attributes. How do I create a polyline in python from this data and keep my...
View ArticleHelp with Script Tool for Creating PDFs from MXDs
I need a little help. I have made a script tool to use to export my mxds into a pdf. It would be a single mxd into a single pdf. I am getting an error that the mxd path is incorrect. I have included my...
View ArticlePythonWin won't Import arcpy
I am getting a syntax error when I try to Import arcpy in my PythonWin. Can anyone tell me how to fix that?
View ArticleHow to populate a list using multiple fields from a table?
Hi all, I'm using ArcGIS 10.0 (ArcInfo level). Below is a script that creates an empty list, loops thru a parcels feature class, gets the value for each record in the 'APN_NU_1' field and populates the...
View ArticleCreate a polygon grid has some odd results
Hi, ive created the below code to create a polygon grid 2 squares wide and 1 high, the code works fine and creates the grid with the attributes but when i select one of the squares in arcMap the...
View Article