Project_Management transformation question
Hi Everyone, I'm trying to project some data via a script but am having trouble sorting out how to put in the transformation that's needed. I should give the heads up that I'm not overly versed in...
View ArticleCryptic arcpy.da.Editor error
I run this code (in a try/except statement and amongst much more): Code: Â Â arcpy.ClearWorkspaceCache_management() Â Â print "1" Â Â SdeVersion = ProductionDatabase(VersionName) Â Â print "2"...
View ArticleProblems accessing GlobalID from an arcpy.da.SearchCursor
Hello all, I'm trying to use a search cursor to query GlobalID values from a feature class or table using the arcpy.da module's search cursor class. It seems, however, that this is not supported. I...
View Articlearcpy.DeleteField_management
I know it is possible to specify which fields to delete using arcpy.DeleteField_management. However, when there are many fields, I would rather like to specify which fields to keep (i.e. delete all...
View ArticleHaving problems with Runtime Error: Update Cursor
I am extremely new to Python, which will become evident in this post. This script was working just fine before trying it on a new shapefile's attribute table. No column or row names were changed. Here...
View Articlehow to keep symbology outlines the same when I change the value field
I'm using graduated colors symbology with quantiles, and I have different fill colors and outline colors for the different quantile categories. My python script loops through several fields, and for...
View ArticlePointGeometry change in 10.1?
I developed a tool in 10.0 which contains a function that snaps points from a point feature class, one at a time, to local networks of lines. The tool worked fine until we upgraded to 10.1, but now...
View ArticleDefault python packages installed with ArcGIS Desktop
I am developing a toolbox for ArcMap. I want to know which python packages are installed by default by ArcGIS Desktop 10.0 and 10.1 so that I can create a virtualenv that matches one a fresh install of...
View ArticleExport ListLayer to CSV or Excel
Hi Is there any python script to list all the layers within a mxd (ListLayer function) and export the list to a CSV file?
View ArticleHow to automatically release extension?
Good morning, I'm trying to find a way to automatically release extensions like SA or 3D. The reason being that when I'm working with an extension (concurrent license) and don't explicitly un-tick it...
View ArticleCheck for Features to touch boundary
Hello Im thinking about a problem to solve for a while now, but cant find a good approach... Here is my problem: i have a feature class with lots of line features. The line features equal segements and...
View ArticleSet DDP index layer with python?
I have a set of Data Driven Pages with counties and land cover already made. I am trying to create a tool that will take input of a county name and spawn a new set of DDP at a 4000M per grid square. I...
View ArticleFinally have a reason to get more memory
Me two years ago: "Who would need more than 8GB of memory to run ArcGIS?" Answer: Me today. Thank you, Esri. Next up, multi-threaded tools? Anyone else looking to get a serious piece of hardware to...
View ArticleSelect features from layers and send to output tables...
I'm sure there is an easier way to do this so any help would be appreciated: I have a shapefile with all valves (hydrant valves and main valves) included in it. I want to select all of the main valves...
View ArticleHelp Creating TIN with Python Script
Hello, For some reason when I cannot get the following script to work: # Import primary modules import arcpy, sys, os, traceback from arcpy import env # Set Variables inTinA_features =...
View ArticleCopy Everything Needed for a Map
I am considering an attempt to create a generic script to identify anything associated with an mxd, data frames, layers, tables, annotations, external objects, etc. and copy it to a new folder. Would...
View ArticleSave edits with python
I dont think you can make ArcMap save edits but need to verify. I wanted to make an extension that saves edits automatically when a feature is finished as a first foray into python add-ins. Dont see...
View ArticleHow to Start a new Pythonwin
Hi all..:) Does any one know how to start a new Pythonwin window, If I see from the start menu and then go to Python2.5 there are only as following: - IDLE (Python GUI) - Module Docs - Python (command...
View Articlecreate new point from centroid grid
Hey all, I've been working on creating a point shapefile from the centroid of a polygon grid I created for mapbook purposes. I have a simple script that is coming back with this error:"Traceback (most...
View Articleinserting text in map layout
Hi Guys, I was wondering if it is possible to insert all possible values of a loop into map layout as a text element. The script I have prints only one value or line. Here is part of my code. Thanks...
View Article