Variable substitution in hard coded path
I would like to replace the hard coded 'G:\\Xcel\\Route Tool\\Potter\\Data.gdb\\Landuse_Raster_Clip' with variable landuse_Raster. Can anybody tell me the correct syntax for this? Code:...
View ArticleHelp with UpdateCursor
Hi, I'm new to python and trying to figure some things out here. I have this bit that I'm working on but once I run it I have to close down PythonWin to be able to run it again. It works up until the...
View ArticleCalculating percents specific to a field using python?
I am new to ArcGIS, so please excuse me if I may not have the best knowledge of all the functions. I am creating a map where I want to find the percent land use for each HUC 12. I have done an...
View ArticleStuck with Building GP Tool
I have got my code,below, successfully completed and tested. I am trying to cross walk it to a GP tool for my customers. I am, however, encountering design considerations based on how the user wants to...
View Articlepython library for remote execution for windows
Hi All , I am looking for a python library for windows which will execute script/command on remote windows machine and get back the output of script/command to my windows machine in real-time. my...
View ArticleImport "V-Late" in Modelbuilder/Python
Hi, is there any possibility to import the ArcGis extension "V-Late" in Modelbuilder or in a python script? So that I can work with the functions in the script directly? Thanks for your help Cathi
View Articleadd fields to all my shapes in a folder
Hallo, I want to add fields to all my shapes in a folder. I want to use a script for this. I was looking at the forum and I found something I can use....
View ArticlePython Help Window in ArcMap
Hello I am learning Python scripting in the Python window in ArcMap 10.2 and would like to be able to use the help window to prompt me for input values however my window always stays blank. I'm also...
View ArticleSimple Geoprocessing Question
I am new to building customized GP tools but I have made significant progress. And I have created a tool that adds a unique ID field and auto populates the added unique ID field incrementally, using...
View ArticleGetting data with python
I'm trying to write a python program, in which python searches for files on an external harddrive. I can get python to tell me whether the files exist, but not to retrieve them. I'm rookie with python...
View ArticleHow to Delete NULL Records
Dear Sir I want to update "CNT_PT_ID" field & delete the NULL records ("CNT_PT_ID" is NULL). I wrote a python script.When it runs "CNT_PT_ID" is update correctly. But "CNT_PT_ID" = "Null" records...
View ArticleGet the changed feature on Python Addin extension event onChangeFeature
I'm doing tests with python addin, capturing the event onChangeFeature to can manipulate fields of the changed feature. I could capture the event, but the event don't give me the changed feature. I...
View ArticleScript to batch process adding raster datasets as attributes in a feature class
Hello, All. I have a large set of point features (signs locations) that I would like to add images to. I have the sign feature class in a Geodatabase and I know how to add the images manually one at a...
View ArticleStand alone ArcInfo Use?
At my organization, we have tons of ArcEditor licenses available and everyone is at that license level. We just purchased one ArcInfo license with the hopes that this can by checked out at certain...
View Articleiterate rows and export to pdf
I am trying to write a code that will iterate through a table, and export each row in the table as a separate PDF. The first time through the loop works. The second time around it gives me the...
View Articlechange the data source of mxd or layer
Hello, I'm trying to change the data source of layers in an mxd-file with a python script and found several possible solutions: e.g. 1. mxd.replaceWorkspaces(...) 2. lyr.replaceDataSource(...) Both...
View Articleusing join by in arcpy.da.searchcursor() - what is the right syntax?
Hi, I'm trying to run a code that uses a "join by statement" inside a searchcursor (it was done to imitate the join by inside the iterate features tool in the modelbuilder). I've tried this code (as a...
View ArticleAutomate Exporting of Layer Joined to Excel Data?
Hey all, Odd problem here arising from being given a large pile of pretty crappy data in Excel. I have 35 Excel files which need to be joined to 35 corresponding feature classes; this part I'm able to...
View ArticleCreate Polygons from Lat and Long coordinates through Python
Hello, I have a problem. I want to create polygons by using the X and Y values from a CSV file. I have borrowed a script and edited to work with my data. The only problem is the script runs for only...
View ArticlePython toolbox - some strange behaviours
I am trying to build a python toolbox. See the attached file (just turn the .py extension .pyt) I am having a couple of issues: 1. I get error messages that the parameters[1].valueAsText property...
View Article