Python tools not running in ArcGISx6410.2 at 10.2
Hello- We have found (and keep finding) many tools related to server and mobile that will not run in the 64-bit IDLEs. Currently, neither the mobile cache creation or synchronization tools will run in...
View Articleuse list to calculate or update fields
I have a list I want to use to update cells in a field. I used SearchCursor to populate a list based on the number: ['Horse', 'Dog'] What I want my table to look like: Animal Number AnimalNumber Horse...
View ArticlePython Multiprocessing geoprocessing sys.stdout flush error
I am trying to run a geoprocessing script tool in a multiprocessing.Pool. Initially, I had problems with pickling my tool, which was imported from a custom toolbox. Then, I defined a top-level function...
View ArticleExport Bookmarked Frame + Data Driven Frame Python
Hi, Been stuck on this for a few hours wondering if anything can point me in the right direction, I am pretty new to Python. What I have is 2 data frames in an MXD. 1 data frame is controlled using...
View ArticleError saving raster
I have spent to much time in trying to solve a <raster>.save(filename) problem, and getting quite desperate. Any help is highly apreciated! The code is like this .... ... outM = Ln(meanAggregate)...
View ArticleCode to select one record from a number of duplicates
I’m trying to write code that will identify site records to use in a habitat species model. There are 4000+ site records of presence and absence of a specific species. Some of these site records are...
View ArticleProblems with Model builder and Script PYTHON
I made a Model to delimit River basins with Model Builder. When exporting in Python format and proving it in another Machine, it takes almost 40 minutes in processing and it always leaves error, not as...
View Articlelocked by another application _ Error
When i run script, it works without any error. But when i try to run again the following message appear. ExecuteError: ERROR 000601: Cannot delete J:\Gampaha\51027202\CM51027202.gdb. May be locked by...
View ArticleStand alone script for running zoom to selected Features
I am trying to run a script outside of arc map I want the python script to zoom to selected features. The following code works great inside of python but not outside of python. mxd =...
View ArticleAcreage Script
I am currently building a model in model builder and I need to add a Python Script (unless someone know of Toolbox tool) that will add acreage to the attribute table. Does anyone have a script handy or...
View ArticleBatch Export And Print Script/Tool stopped working in 10.2
Hi all. I have been using below script/tool for a very long time and have gotten used to how easy it was for me to take 100+ maps, click 2 things and come back to beautifully exported or printed...
View ArticleModel Builder - "Tool has no parameters"
I just imported a script that I want to use in my model however when I import the script into modelbuilder I keep getting the message "This tool has no parameters." I know this maybe a fairly obvious...
View ArticleRasterToNumpyArray not 64 bit even in background?
In order to process some very large (16 billion cell) raster datasets, I'm attempting to use numpy to speed things up a bit. When I use raster to numpy array, I get either following message: Code:...
View ArticleUsing arcpy to open Script tool
Is it possible to use the pythonaddins.GPToolDialog(X,Y) as part of my python addins toolbar script to open a script tool I have stored in a custom toolbox? Where X is a string representing the...
View ArticleTrying to Iterate Through List of Directories
I've got some very basic test script that I'm running in IDLE. Essentially, I will have a list of multiple directories that get inputted through a "arcpy.GetParameterAsText". In IDLE, I've rem'd that...
View ArticleTurn fields off by script
I've been beating my head against a wall for a full workday trying to figure this one out. What I want to accomplish is to turn a number of fields off in a feature layer. There is a method using the...
View ArticleSelect by location to Excel file
I have been using ArcGIS for a few years now but have only started using Python scripting for ArcGIS for a month or so. I am trying to create a script and i am having a hard time trying to get it to...
View ArticleUpdate Cursor to Calculate Field
I'm trying to use an update cursor to calculate a field. Basically, I'm trying to avoid division by 0 by looking in row[0] and see if it's 0. My code thus far is: Code: import arcpy...
View ArticleWriting in to CSV file PROBLEM
Dear all, I have below piece of code and output window . I could not able to write in to CSV file output: Code: ['date is:7/12/16', 'time is:24-0-0', 'Zenith:104.85', 'Azimuth:110.40',...
View ArticleNot Getting Full Paths in Directory List
Greetings, I'm using "arcpy.GetParameterAsText" to get multiple directories for my script to loop through. I've set the mutivalue parameter property to "Yes" and my input form does allow me to select...
View Article