Calculate Field management throwing field name error
I have been racking my brain for over a week now and no matter how I format my code, the arcpy.CalculateField_management line just will not run for me. The parts of the code for the operation are...
View ArticleWhere Clause SQL syntax problem - Urgent Please Help
Hi, I am running a select layer by attribute and location query on a feature layer of points made from a shapefile. I have been stuck for hours on the wording of it and would be grateful if some one...
View ArticleSQL where clause problem - Grateful for help. Please Help
Hi, I am running a select layer by attribute and location query on a feature layer of points made from a shapefile. I have been stuck for hours on the wording of it and would be grateful if some one...
View ArticleExport Page Layout to PNG, type 'exceptions.AssertionError'
I'm using ArcGIS 10.0 sp5 on a Win7 PC and need help with a script to turn layers on/off and export the page layout to an image file. The script works until the ExportToPNG(). I have 281 layers with up...
View ArticleExport to shapefile (multiple) command?
Can someone please tell me, is there an arcpy command to export to shapefile (multiple) as you would do in ArcCatalog? Thanks
View ArticleSQL where caluse syntax Please Help
Not sure if I have to post again but older things just seem to get ignored. Please can someone tell me how to write the where clause for "CRIME_INDE" <= 0.02 AND "UNIVERSITY" = 1 when everthing is a...
View Articlearcpy.da cursors and layer definition query
In my mxd I found that if I ran an arcpy.da search cursor with a where clause on a layer that had a definition query applied to it, that the where clause would not be honored. Anybody else have this...
View ArticleWhich sides of a parcel have road frontage.
Im trying to figure out how to find which 'side' of a land parcel has road frontage. The matter is complicated by our PA not storing true curves when they draw the parcels. Any cul-de-sac is made of...
View ArticleI need some help with os.walk and defining shapefiles in sub folders
So far this is what I have. It works if the shapefiles are in the C:/test_define folder, but it will fail with this error if they are in sub folders. I am new to this so I am probably missing something...
View ArticleCreating a Add-IN to select a feature in a feature class and displaying results.
I was wondering the solution would be to have button click, enable selection on a feature class (predefined) and reurning the attiributes. So you have turn select button on and off that is on arcmap....
View ArticleCalculate Field management throwing field name error
I have been racking my brain for over a week now and no matter how I format my code, the arcpy.CalculateField_management line just will not run for me. The parts of the code for the operation are...
View ArticleWhere Clause SQL syntax problem - Urgent Please Help
Hi, I am running a select layer by attribute and location query on a feature layer of points made from a shapefile. I have been stuck for hours on the wording of it and would be grateful if some one...
View ArticleSQL where clause problem - Grateful for help. Please Help
Hi, I am running a select layer by attribute and location query on a feature layer of points made from a shapefile. I have been stuck for hours on the wording of it and would be grateful if some one...
View ArticleExport Page Layout to PNG, type 'exceptions.AssertionError'
I'm using ArcGIS 10.0 sp5 on a Win7 PC and need help with a script to turn layers on/off and export the page layout to an image file. The script works until the ExportToPNG(). I have 281 layers with up...
View ArticleExport to shapefile (multiple) command?
Can someone please tell me, is there an arcpy command to export to shapefile (multiple) as you would do in ArcCatalog? Thanks
View ArticleSQL where caluse syntax Please Help
Not sure if I have to post again but older things just seem to get ignored. Please can someone tell me how to write the where clause for "CRIME_INDE" <= 0.02 AND "UNIVERSITY" = 1 when everthing is a...
View ArticlePython Add-In: Modifying an existing add-in?
Hopefully I am just overlooking the obvious here, but how do I go back to modify an add-in? I used the Add-In Wizard (addin_assistant.exe) to create the original, but now I want to add additional...
View ArticleQuestion about Finding Sample Python Scripts!!
I am in the need of some python scripts that I might be able to adapt to a program I have to write here at work. I need to write one for finding missing annotation in an mxd and one for comparing two...
View ArticleClear Selected Features in All layers
I am looking for a way with python to clear all selected features in my dataframe. Like the "Clear Selected Features" button in ArcMap. I have been looking for this online and just could not find it....
View ArticleCan you summarize a table by one field and the find median value of another?
I have a table of values collected at various monitoring stations. There's a row for each value with the station where and date when this value was recorded . I am trying to find a way to select all...
View Article