Weird File Path Returning from Print Statement Causing ERROR 000732
0 down vote favorite I have created a python script in ArcGIS 10.1. My first parameter type is a 'Feature Layer' set to as a multivalue input. I was running my script quite well off of data from one of...
View ArticleGeneric non hard coded select by attribute and location query - Help!
Hi, I've written a script to import into Arc Tools (Toolbox) that finds suitable cities using a select by attribute and location query that is non hard coded and takes user input. All paths, shapefiles...
View Articleusing python "In_Memory" for arcpy.conversion.ImportCADAnnotation
As the title states... trying to gather thousands of dwgs annotation to one annotation featureclass in a FileGeodatabase. the middle step, of using arcpy.conversion.ImportCadAnnotation failes: Using...
View ArticlePython gp.deletefeatures - PLEASE HELP
Hi Folks, I have a script that extracts records from an online sharepoint list and appends them to a feature class... Every time the script runs the first thing it does is: theFC =...
View ArticleSelect by Location with user input
Hey everybody, I have been fighting with this for a while. I was looking to create a button that starts a select by location script with the highlighted parts of select by attribute being configured by...
View ArticleHow to assign variables to values inside fields.
Hello, I want to assign variables to values inside fields. There is one example of a script that retrieve values from a field and print them in the console. I need something like that but for get this...
View ArticleServer Tools, Extract Data Model, Email link instead of ZIP
I'm struggling with this one, and hope someone out there can help! I have added a customization to the out of the box, ArcToolbox/Server Tool/Extract Data task, because if the data to download is over...
View ArticleZoom to ATS Location and Merge Features
Alright. Let me start off by saying I am completely new to python . I am a GIS student and for a project I have (ambitiously) decided to try and make a couple (I thought simple) script tools. The first...
View ArticleUser Input Select By Attribute & Location - Desparate urgency - PLEASE HELP!!!!
I have written some generic code to run a select by attribute and location query and then do a spatial join with the narrowed down results. This is for a user input Arc Tool in Toolbox. The trouble is...
View ArticleCreating a python scrip to batch process .dat files
I have been trying to create a python scrip to batch process .dat files (with .hdr files). The data is PRISM Temperature, Precip etc... data which are stored as .dat files - for all the type of...
View ArticleSame Code Different results HELP
Please can someone look at these two small pieces of code and tell me where I'm going wrong. It's a simple(?) make feature layer and save feature layer command. Code2 (below) works perfectly, but Code...
View ArticlePython code saved with extension .dll?
I have a python code that was saved with the extension .dll. How and what program would I open it with to see the program?
View ArticleCalculate Field Tool Does not Complete - Help
I need help really bad. I have been looking through all of the Forum posts and and Help sections to try to figure out what is wrong with no luck. Here is what I am doing: I have a File Geodatabase...
View ArticleScripting "Create Geometric Network" Syntax Error
Once again I have a syntax error that I cannot figure out. It keeps highlighting the end quotation marks which I have made RED. Thanks for any input. This is my first attempt at scripting GeoNetworks...
View ArticleSelectLayerByAttribute using an 'in' argument
I'm trying to build a dynamic query that addresses user section of multiple values. example: User input might be 1 or 1,2,3 or 1-5 I thought I could build a query such as Code: myfield =...
View ArticleCustom tool validation inside model builder
I have a custom tool built on a python script that has some code in initializeParameters in the ToolValidator. The code executes fine when I launch the tool, but if I add that custom tool to a model...
View ArticleIsolating features, who have no matching row in a table
I’ve been working with this for a while, but I feel like I must have hit a wall…Everything is contained in one file geodatabase. The point featureclass contains approximately 65000 features. The table...
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 Article