ListTables does not work...
Hi, I am working with ArcGIS 10.1 SP1 and I try to list tables from within a file geodatabase. I set the workspace to the specific geodatabase and write: Code: lstTables = arcpy.ListTables()...
View ArticleIs there a way to fill the color of a selected attribute?
I was given a script that is being used to select the different counties of the state from a shapefile, zoom to them, and then export a gif of the view to a folder. This works perfectly by just...
View ArticleDeleting network features in script doesn't create net junctions
http://forums.arcgis.com/threads/902...-net-junctions No bites in the Geoprocessing forum yet, so thought I'd try here. Quote: Originally Posted by msayler I have a script that makes a copy of a...
View ArticleAccess is Denied (os.remove)
I'm trying to create a DDP export to PDF script that uses the ESRI Example from South Kingstown, RI, and when I run my script I get this error: Code: Runtime error Traceback (most recent call last):...
View ArticlePython program stops on "DeleteIdentical" without an error message.
Python program stops running but there is not an error message. I know that the "Repair" is completed without a problem because I had print statements giving me the status of the program. After the...
View ArticleHow do I get the actual value instead of the property object
I'm trying to get the name of a layer in a mxd. It is a very simple mxd with one layer. I tried Code: lname = arcpy.mapping.Layer.name print(lname) and the result was <property object at...
View ArticleTrying to use rstrip
I want to strip off the last 4 characters of a layer name that is in my mxd. It is the only layer. It is a MrSid file. I want to export this image to pdf using the layer name without the .sid part....
View ArticleHelp with layer file definition query in arcpy.mapping
Everything seems to work just fine with the code below except that no features draw in the layer that is being queried. All I want to do is create a jpeg for each record in my geodatabase feature class...
View ArticleNatural Sorting
Is there a way to perform a natural sort on a SearchCursor? I've got a line of code: Code: rows = arcpy.SearchCursor(mapLyr, "", "", "CONCAT") and I learned that it naturally sorts based on FID. The...
View ArticleShow line numbers in an IDE
Is there a way to toggle line numbers on the display of a script in either Pythonwin or IDLE to help in debugging? Both have an Edit>Goto Line which is great. Is that enough?
View ArticlePoints wont display?
I have a csv that is read. Its data is copied over into the empty feature class. The code reads each row in the csv file and then creates a new row in the feature class to place the data in. Reason I...
View ArticleImporting models from a toolbox toolset
Hi there, In arcgis 10 I'm trying to import a model that's located in a custom toolbox with the arcpy.ImportToolbox method. This is working ok as long as the model is located in the toolbox root but...
View ArticleChange Alpha channel on multiple ecw tiles
Hi All, Trying to save myself hours of work here, I have a layer with >300 ecw tiles from aerial photography all of which need the alpha channel updated to be band 4. Is there a way to achieve this...
View ArticleNeed help refining a script, need to be able to accept user input layers
Can anyone help me refine a Python Script? I'm developing a tool to generate a simulated list of Applications to a city for Cannabis Facilities authorized under Initiative 502 so that city planning...
View Articlearcpy.CheckOutExtension -- Check out custom Extension
I've created a simple Python Add-in extension for taking a value from the mxd name and using it in a definition query. The map automatically opens to the area of interest as specified in the title. I...
View ArticleArcToolbox GUI Behavior on Closing
I've been trying to figure out how the ArcToolbox GUI behaves when you close it after an error has occurred. One of 2 things usually happen when you hit the close button after an error has occurred...
View ArticleTrouble passing coordinates to CreateFishnet_management
As part of a Python script I am trying to pass coordinates into CreateFishnet_management. According to the help file, the syntax for the origin coordinate should be '610433.5 4956420.5'; however, my...
View ArticleEnable a tool dialog box to display selected values from a related attribute...
Hi there, I guess I am probably trying to stretch python too far but what I want to do is create a user interface that makes it easier to edit several datasets and some that have related tables. I can...
View ArticleJoinField General Function Failure
Hi there, I am having an issue with the arcpy.JoinField_management() function. Most of the time (but NOT always), it fails in several of my scripts, although it is structurally no different than...
View Articleoverwrite outputs in file geodatabase arcgis 10.1
hello everyone well i am using moderbuilder to automate some geoprocessing work. i have used arcgis tool in model builder then save the model to run, whenever it is needed. problem is when i run the...
View Article