this is NOT the "official" arcpy OMD, it is just a photoshoped version with the new arcpy wording. It is helpful is you want a arcpy OMD to put up on...
It seems some folks are finding it difficult to post code in the forum. This is especially important with Python scripts, as indentation is part of...
Hello all this's a very frustrating problem: the addMessage function is not working for me in the Python Window. It works in a toolbox message...
I have looked around and have not found any solution to this problem. I am writing a GP tool that will allow the user to define a point by clicking...
Hi All, Just want to change the label on a layer called "Polls" from the following: to the following:
Hey folks, I don't mean to beat a dead horse being that i have seen this discussed before, but here is my issue. I am having to merge two sets of...
I haven't played in Python for almost two years so I'm very rusty. I'm definitely not saying I was all that good at it then. I could use some help...
Hi! I have a python script that's supposed to walk through a directory and convert any e00 files, while renaming them with a date/time stamp. The...
I'm getting the following error with my code which is generated in excel using a VB script. I am really confused as to what's triggering it: ...
I have a folder that contains a few dozen shapefiles. I want to create a script that adds all of these files to the current map document. The...
Hi, My python code needs to do eliminate many times. After around 1000 times, my code stoped with an error "out of memory". I am curious if...
I will start with I know nothing about python, other than I need it now. I have created a simple model that uploads a xyz file to a sql table with a...
Hi All, At the last stages of this script I'm writing and this is just one of those "would be nice to have" options. Situation is that I have...
I wish to sketch a polygon (graphic drawing) on the screen, and then get the vertices of that polygon into a table for use as input in a different...
I am trying to find a way to start and stop a service in python so I can automate some updates. I have found the the agssom.exe script in Arcscripts....
I have hundreds of mxd's with broken links due to migration to a different SDE server. I know how to change to the new SDE connection using the...
Am I doing something wrong here? I'm just trying to check out the spatial analyst extension, but arcpy.CheckOutExtension("Spatial") insists it is...
I guess this question is two fold: 1. Is there a way to make dynamic text that is based on a variable? 2. If so how do I do it and set the...
Hi there, What I need to do is move all the files into an mxd to a newly created gdb, chechking prj, and update mxd reference. I have ArcGIS 10...
System: ArcGIS 9.3 Problem: I tried to calculate the latitude of north and south limit of polygons specified as S in a shapefiles. The...
Hello, I have some polygon shapefiels. Each of them are composed of more than one polygon. I would like to ask how to get 1. the latitude...
Howdy All, I have a python script that will work fine if I run it directily from PythonWin or double click on it when in Windows Explorer but when...
I was writing a code to compare the fields within some feature classes that are in 2 seperate geodatabases. The geodatabses contain the same feature...
I have a simple script that exports a map to a JPEG. Here is the meat of it: print "generating ouput of " + mxdPath mxd =...
There is an error in the documentation for Save To Layer File (Data Management): The stand-alone Python script has the following offending code: ...
Hi All, Googled around and again failing to find adequate documentation. All I want is to print current map. I see this: arcpy.mapping.PrintMap...
System ArcGIS 9.3 Problem I tried to project using shorthand of 1984 prj. However, it failed and said ERROR 999999: Error executing...
Hi, I have a nifty script for deduplicating coordinates (not made it myself, a redditor helped me). However, I would like to get it to work with...
Not sure if this is a Python problem or an ArcMap10.1(arcpy) issue. I have a script I run once a month and it has been running fine for months. ...
Is there a way to zoom to layer instead of zoom to selected feature. The zoom to selected feature works for me but it's so much slower than just...
Hi everyone, (system is 9.3.1) I am trying to create a script that takes in LiDAR, .las files, calculates the heights from the ground, and returns...
System ArcGIS 9.3 Problem The code "batch projection" was used in the code below but did not work. Please kindly advise modification and thanks....
System ArcGIS 9.3 I have some polygon shapefiles. Each of them has a field C****. (such as C8745, C1276, and C3498) The field has strings such...
I am trying to populate a field with the sum of the acres of another field. I only need to sum the acres when the listing number appears more than...
Hi All, I just want something really basic, how do I query using python. My layer is called Consolidations, I want to query where field "Cons" is...
I am having difficulty making a Phyton script work through Windows 7 Task Scheduler. I created a Model and exported the Model to Python and then...
Hello all, I have a KML file that I've parsed through to obtain some values that get returned as a list. I need this list to append into a table,...
I have a bunch of .lyr files that point to a directory that's been moved. I'm trying to programmatically re-link them to the new location...
Hello - I've been trying to execute a small script from outside an ArcMap session - simply adding a layer and refreshing symbology, and nothing...
Hi, I have a simple script for batch exporting .mxds to .PNG: import arcpy, os ws = arcpy.env.workspace =...
Hi, here the whole code from a beginner. Nothing happens when I open ArcMap. The symbology from the input layer did not changed. Thanks! import...
Dear all, I wrote this peace of code, and it doesn't work. When I open ArcMap there is no symbology active for the inputLayer. What to do? Regards ...
I am trying to add a custom toolbox to a python script. Seems like a pretty simple coding exercise, but I am getting an incorrect syntax error. ...
I have a situation that bewilders me. Here is an excerpt of the script in question: ... for ds in DSs: FCs =...
I have a script that works perfect in python, but isn’t working correctly as a script tool in ArcCatalog. I have 3 arcpy.GetParameterAsText...
I need to schedule a script every week to export my shapefile and replace the corresponding SQL Server spatial data. I created the Spatial ETL tool,...
Hey All, Below is a block of code and the error generated. Can some please tell me what the issue is? I use Topo To Raster in other code...
Hi! I've been asking for criticism on my arcpy scripts by experienced Python programmers, and they all say arcpy needs to adhere to the PEP 8...
Hello! In my humble opinion, Ruby is way more beautiful than Python. Is there any chance ArcGIS will support it in the time to come? Many...
I try to do a script that delate all data, then append new data in sde. I am looking for something that will check correctness of fields before...
hello good morning i have a problem to connect to an arcsde geodatabase with python and i need help please i use arcsde for single use (trial...
System ArcGIS 9.3 Problem 1: No message jumped out when finishing running addMessage in the code below. Please kindly advise any modification to...
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.
Forum Rules