CreateGPSDDraft with multiple results issue
I'm trying to call CreateGPSDDraft function (new 10. SP1 ArcPy function) with multiple results parameter as described in this help topic: http://resources.arcgis.com/en/help/...0000008z000000 Code:...
View ArticleImport text files into preformatted word document
I have this incredibly long python script that ultimately ends up with several text files (generated using ArcGIS 10.1) that I would like to import into a pre-formatted MS Word document/template. I...
View ArticleUpdating Tables
I have written a script that selects parcels from a file one by one, then selects by location buffers that intersect with that parcel. From those buffers that are selected I need to calculate an...
View ArticleIn script, Point to Raster generates Error 999999 : Failed to build pyramid
I have a script that for various reasons is converting point data into polygons by going through raster format first. However, the script is failing with the message: Traceback (most recent call last):...
View ArticleHow to identify if a Subtype exists
Windows 7 Pro 32bit SP 1 ArcView 10.0 SP 5 Using just ArcView here, or Desktop Basic, or whatever it's called now. I want to write a function that detects if a feature class has any Subtypes in it, and...
View ArticleScript Tool Help! df = arcpy.mapping.ListDataFrames(mxd)[0] ISSUE
I'm trying to create a script tool but when I run the tool I keep getting and error message: I'm not sure what the problem is with the df = arcpy.mapping.ListDataFrames(mxd)[0] Traceback (most recent...
View Articlestream extraction- bends
Hello, could you please let me know whether Python can be useful to work with raster data and add some extra points belonging to bends so that it would be possible to generate a stream passing through...
View ArticlePageLayoutObject: Error in parsing arguments for ExportToPDF
I'm trying to create a tool where the user can specify multiple MXD-files, which will be exported to a specified output folder. As an option, the user can set the resolution for the PDF's. My code...
View ArticleRenaming multiple Featureclasses
Hello, I need to create a python script that would rename all the feature classes within multiple featuredatasets in a gdb (the gdb is in ArcSDE if that makes any difference). The feature classes are...
View ArticlePython, ArcGIS and Weird String Error
I have a FC that I am working with in Python. I add a text field to it and want to calculate the field values based on a string variable. The string is read in and parsed to get the value. Example:...
View Articledefault symbology
Hi Folks, The following arcpy script adds a raster image to the TOC: Code: import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd)[0] r =...
View ArticlePython script to derive new cells values from the current ones,
Python script to derive new cells values from the current ones, I couldn’t figure out how to develop a code that change the values of cells based on If –Then statements. Suppose that I got a raster...
View ArticleTraffic Data
I have written a script to attempt to download traffic data but it has shown some errors i have tried to rectify but returning the error. Here is my script: # Olawumi Lanlehin import arcpy from arcpy...
View ArticleCSV Field Types
Newbie to Python, but have written a script to concatenate multiple CSV files into one file and add a couple of computed fields. I was wondering if there is a way specify field types in python where...
View ArticleScratch Folder, Scratch GDB for ArcGIS 9.x and 10.0
I ran into an issue that was solved by the new arcpy.env.scratchFolder functionality to force working in a folder. Unfortunately I was using 10.0, not 10.1. So, I created some Python functions that...
View Articlescript tool for df.time.currentTime ???
I'm getting this error when I run my script tool. Traceback (most recent call last): File "C:\Users\Courtney\Desktop\ScriptTool.py", line 233, in <module> df.time.currentTime =...
View ArticleNew feature class and saving data
I'm very new to Python and I have a question about building an add-in for ArcMap. I've looked all over for a tutorials, but there are none that answer my question. I would like to build an add-in where...
View ArticleRe: Splitting raster cells.
Quote: Originally Posted by wesrockin I have a raster with a resolution of .47-meters, it contains one field that defines the presence or absence of forest canopy (1 or 0). I need to use a 5-meter...
View Articledefault symbology
Hi Folks, The following arcpy script adds a raster image to the TOC: Code: import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd)[0] r =...
View ArticleScratch Folder, Scratch GDB for ArcGIS 9.x and 10.0
I ran into an issue that was solved by the new arcpy.env.scratchFolder functionality to force working in a folder. Unfortunately I was using 10.0, not 10.1. So, I created some Python functions that...
View Article