Multivalue query
I am trying to create a script that allow me to enter more then one value to search, select and create a new feature from the selected. My script runs and finished fine but produces no out feature...
View ArticleHow to make a script taking Geographic Transformation as parameter?
Hi Everybody: I want to make a toolbox script (using a python script as source) that takes a Geographic Transformation as parameter (like the out-of-box Project tool under the toolbox "Projections and...
View ArticleWhat is the difference: Coordinate System v.s. Spatial Reference?
Hi Everybody: I am trying to create a script that takes coordinate system as an input, but after checking the list of data types I found that both Spatial Reference and Coordinate System types are...
View ArticleDataDrivenPages and ListLayoutElement
I'm running DDP just fine, the maps print, the dynamic test prints everything is hunky dory. Except..... When I try to change the text in TEXT ELEMENTS directly from my script. I simply can't get the...
View ArticleCalculate a field with a text string containing various values from another...
Hi everyone, I've got the following problem: I have a table with the columns NAME - GESCHL - FAMST - FREQUENCY - MEAN_ALTER from summary statistics. Basically, it lists the number of people (FREQUENCY)...
View ArticleExport to PNG by DDP Page Name instead of PageNum
I am surprised that this has not been documented previously, but my search did not yield any results. Here's my question: There is sample code to export all of your data driven pages to individual PNG...
View ArticlePython script running slower in PyScripter than with IDLE
Up until recently we used the IDLE interface to write and then run Python scripts for ArcGIS. I had PyScripter (PyScripter v2.5.3 32-bit version) installed on my workstation which is a Windows7 64-bit...
View Articlepython to open dbf?
hi guys, python novice here, thanks for any help.... have this working so far: import arcgisscripting import re import dbfpy import sqlite3 # create the geoprocessor object gp =...
View Articlearcpy and the editor
Can you detect in a script if an editing session is active? I'm running a tabletodomains function that requires exclusive database access, I'd like to check if an editor session is active.
View ArticleNew to Python
Good Morning I am getting my feet wet in Python and I am wondering if it is possible to create a password protected zip file with Python 2.7? I have a script that creates a basic zip file but I cannot...
View Articleexporting layout view in arcpy
Hi, I am trying to export the layout view in arcmap by using the following script: import arcpy import os mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd") df =...
View ArticleRaster to Video Tool
I'm having an issue exporting my .avi video I am using a version of the following script: # Import system modules import arcpy from arcpy import env # Set environment settings env.workspace = "c:/data"...
View ArticleMethod to check for State 0?
Does anyone know if there's a way in which you can return the State number of a versioned geodatabase via Python? We have a script that compresses the geodatabase, but sometimes we have to manually...
View ArticleField Caluclator Error
I've written a script. that uses the field calculator to create a value for a new field, "TotGroupField". This field value is = to Field1+Field2+Field3.... I'm getting the following error: Code:...
View Articlestream extraction
Hello, could you please help me to solve the following problem: I need to create automatically a stream using a raster as input data (Ob17_1). I have applied Reclass (3D Analyst Tools-Raster Reclass)...
View ArticleHELP WITH A SIMPLE (BUT URGENT) PROGRAMMING PROBLEM
Hi everybody! Would anyone who likes programming try to understand and solve this simple problem? In an ArcGIS map I have a layer with an attribute table showing 2 polygon features and their areas...
View ArticleAddLayer.arcpy
Hi, There is probably a simple solution: My question is....After adding a layer with this similar script addLayer = arcpy.mapping.Layer(r"C:\Project\Data\Orthophoto.lyr") arcpy.mapping.AddLayer(df,...
View ArticleTime disabled on map after adding time enabled layer
Hi, I am adding a time enabled layer to a non time aware dataframe : import arcpy import datetime import os mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd") df =...
View Articlepython hangs on raw_input
I cannot overstate now new I am to python, so bear with me... haven't had this before; one particular bit of raw_input is causing my pyscripter to just hang and never come back; I need to stop it in...
View ArticleFor loop for different values in a field
I have the following python script that creates a feature layer from an attribute selection. The layer ‘zipcodes’ has a field with multiple zipcodes and instead of writing the following code over again...
View Article