Creating a Custom arcgis tool
Hi Everyone, I have a script that works in IDLE, but now I want to create a custom tool to be run inside arcgis. I am a little confused about how to modify the code to get it to work though. I have a...
View ArticleBufferzone
Hi I'll will find out the difference in population between year 2000 and 2013. I have a feature class file with the population in year 2000 and 2013 that are connected to the municipal number and that...
View Articlevariable output file names
I am running a while loop and would like to name each output file using the iterator (i) as part of the file name. I have tried "fac" + i, "fac" + str(i), fac + str(i), and fac + i. None of these work....
View ArticleNeed help creating custom tool
I"m trying to create a tool that reclasses values and stores them in a new field in a table but I'm not sure how to do it. I tried using the create_field_management and calculate_field_management tools...
View ArticleList Map Services - Function Error
Hi! Using this tool looks so easy (acording to http://help.arcgis.com/en/arcgisdesk...000004s000000/), but it is not working for me :( ... My code: Code: import arcpy serviceList =...
View ArticleUpdate Python script to 10.0
I have a script that was written and worked very well in version 9.3.1. I have updated the script to work in version 10.0 but am getting an error:ERROR: Executing: CopyFeatures locations_Layer. However...
View ArticleMapDocument.saveACopy() Error
Hi, I've getting an error with the saveACopy function of an arcpy MapDocument, it will not let me saveACopy of a document I created using saveACopy then later renamed back to the original documents...
View ArticleGet Attribute Value from Selected Feature
I'm trying to write python-addin code to create a tool that would enable a user to click on a feature and get an attribute value. The attribute value would be used as a parameter to open an MS Access...
View ArticleInsert a Zero after a specific number of character in a string
I have a string field called [PROJECT_NO]. It has 7 characters in the string. Example: 02WG028 We are changing our project number standard to eight characters, so I need to "insert" a zero after the...
View ArticleTool stops executing if file not found
Hello everyone. Iam relatively new to Python coding and have a simple question. I want to execute a tool, in this case, the Copy Features tool. I want this tool to copy files 1-16. The problem is not...
View ArticleArcSDE Connection
Hi, I've been frustrated to connect to ArcSDE in ArcGIS 10.1 (windows 7 o.s.) I've been following the document & help supply connection properties for CreateArcSDEConnectionFile_management such as:...
View ArticleError while using raster calculator in model builder
I am trying to use the model builder for the RUSLE Model. Well this is how the model looks like: Attachment 24064 So in the raster calculator I have a formula which also involves the rasters generated...
View ArticleI can't start the pathywin.exe
can't start the pathywin.exe when i try to start the pathywin.exe in the folder "C:\Python26\Lib\site-packages\pythonwin" I get error " still can't get my hands on win32ui" why !!!!!!!!!!
View Articlepopulating a Python List and Queue.Empty error
I am working on a project where I simply want to create maps of the FHWA Functional Classifications for all the roads in a county. The field name in the roads layer is FUNC. I created a Python List...
View ArticleFormula for finding volume
What formula does ARCMap 10 use to find volume of a reservoir? Is it "end-area formula" or something else?
View Articleupdating a Python scri[pt from 9.2 to 10.1 - blockmin function?
I have a Python script, not written by me, that I am attempting to upgrade to run using arcpy. I'm stuck on some raster calculator- type calculations in the old script; I cannot figure out how to...
View ArticleDisappearing labels....bug???
I'm having a strange problem with a script. I have a template MXD set up with a bunch of text elements set up that I will be updating by adding values from a search cursor. The script is to generate a...
View ArticleHelp with Python please!? (Questions from a rookie)
I'm do not know much of anything about python and I'm looking for some help converting a VBA expression that I am trying to use in ArcMap's Field Calculator (NOTE: I can't get this VBA to work either,...
View ArticleOpening MS Access Form with Query
My little Python script is intended to run in a Python-Addin tool where the user clicks on a parcel, grabs the PIN attribute and then opens an MS Access form with the PIN as a parameter to a query. I'm...
View ArticleHelp with Python coding - how to populate a table with the...
I am trying to get the row count resulting number into a shapefile. I can see the row count when the python is executed but have no idea how to populate an existing table with this number. The code is...
View Article