"arcpy module does not exist"
Quick background of the hardware and software I'm using: OS: Windows 7 64-bit Arc Info 10.0 IDE: Wingware Python IDE 4.1.3 Python 2.6 (installed with ArcGIS) AND 2.7 are installed on my machine I am...
View ArticlePython add-ins: Event listeners can cause problems
I would not normally start an edit session programmatically while listening for an onCreateFeature event, but this problem was brought to my attention and I was able to duplicate it. If I have a Python...
View ArticleAddress Point Labeling Script
The goal of this project is to rotate address point labels (house number specifically) to be perpendicular to the street to which they belong (purely by street name comparison thus far). Inputs are an...
View ArticleSPEED: da.UpdateCursor vs. field calculation?
I need to add 12 integers together for 1.5 billion points. Would it be faster to do in a da.UpdateCursor or should I just use the standard field calculator?
View ArticleTime-Driven Phyton Script
Hi, Does anybody know a script in phyton which automatically runs a model, after a pre-defined period i.e. 5 Mins, 10 Mins etc. Thanks Jun
View Articleautomated symbology for many layers
HI THERE i have to szmbolyse a lot of rasterdatasets the same way. as I allready read, it should be possible to use arcpy.mapper i tried it to create a iteration< to get all rasters with the name...
View ArticleUsing a Variable in a Search Cursor with Python
Ok, so I have been having a problem setting up a search cursor with python that uses a variable as the desired value. It seems that I am missing an operator, however, I am lost as to what operator I am...
View ArticleGraph, changing item names in legend
I'm having python produce a multi-series graph. How do you change the series name in the legend, the default being Vertical Bar, Vertical Bar1, Vertical Bar2.... Thank you for the help! Code:...
View Articlearcpy export pdf not all labels displaying
I have a python script that updates an xy layer event in a mxd updating point locations. It also updates labels for this new xy layer event. It then exports the mxd to pdf. I have noticed that only my...
View ArticleCumulative Sum by year?
Hello, I have a table that is something like: Object Year Acres 1 1980 5 2 1979 3 3 1978 2 4 1980 8 5 1979 2 6 1976 6 I would like to use python to create a cumulative sum so that I end up with a table...
View ArticleSetting Parameter Data Type/Properties
I have a script which I've added to a toolbox in ArcGIS 10.0. The script asks the user for a geodatabase (I'm creating and storing rasters from a NetCDF file) and either uses an existing geodatabase or...
View ArticleIf-then statement/true-false condition
I'm having a problem with my second If-then statement. It seems like it should be a simple fix, but I'm new to coding so I'm struggling to figure out why I have my first and second If-then statements...
View ArticleInvalid Expression Error
I am trying to write a script that runs a select by location then a subset selection of select by attribute but I keep getting an invalid expression error. The last where clause is to selected any...
View ArticleProblem with Intersect_analysis
Hello, I have a script that is to geocode addresses from a database, intersect the results with three boundary files and do a tabletotable conversion on the results. Below is the intersect statement I...
View Articlestr object has no attribute append
I am trying to run an array where it loops through my "Cont_Buff" layer selects the first record, then selects all the culverts from the "Culvert_subset" layer that fall within that first record. Then...
View ArticleAssign Z value from DEM to line ends
PLEASE HELP URGENT - Is there anyone at all who can help with this? I wrote a script based on the Extract Value To Points tool but it doesn't work properly. I have a simplified line shapefile and I...
View ArticleHow to add an image to an existing data frame using Python?
This is the first time I am using Python on my own, and I have searched for this answer for a few hours with no luck. I am wanting to take a .JPG image and put it in an existing data frame. The image...
View ArticleRefresh Active View Automatically
I am trying to work out how to have the arcmap active view refresh every few minutes or so automatically. This is so I can track the movement of some ships. At this stage it is to prove a concept. I...
View ArticleProblem Writing Attributes w/ UpdateCursor
Hello, I have two feature classes with features snapped together. In one area I might have 3 points from feature class A, and 3 points snapped to those points 1:1 from feature class B. The points from...
View Articlearcpy.mapping.AnalyzeForSD(sddraft) - Missing warnings
Hi, I have a problem with the arcpy.mapping.AnalyzeForSD() function. I'm trying to automate everything and is in need to get all the warnings/messages from the mxd analyze. Somehow i dont manage to get...
View Article