Problem when I try to overwrite with Python
Hi, I create a geoprocessing model that basically compare two features class and if it find a new record it write it to a feature class. we export this model to python script so this process could run...
View ArticleZoom or Pan to Selected Features, But not All of Them!
I get lots of these really simple maps, which take 10 minutes to make with a template, but the boss wants them in one minute! So I was told to write a tool to do this. I chose a Python Toolbox tool so...
View ArticleModelBuilder: export attributes to a text file
I have an attribute table with a single field - a long text string that includes spaces, commas, and letters, etc. I would like to export this data to a plain text file using ModelBuilder. I just want...
View ArticleDisplay current feature only
What would be the best method to tell DDP to zoom to, but display only the current feature? I have a feature class of about 400 land parcels, but need only the current parcel displayed (not...
View ArticleEclipse Issue
Hi, I am getting a resolving error on the "TableToNumPyArray" tool. I have added all the folders I think are important for this, but I still can't get the error to go away. Any thoughts? I have the...
View Articlefield map problems
Using Arc 10.0 SP3 I am having some problems using field mapping and python. If I run the code without the field mapping parameter it executes fine, just exporting all the fields in the source table....
View ArticleWriting to Map Document Properties with Python
While working on some python scripts I quickly tried to erase the map title element via python using essentially the below code in a loop: Code: file =...
View ArticleProgressor is apparently not available to Python Add-Ins
Apparently, the arcpy progressor is not available to scripts run as Python Add-Ins, it is only available for scripts run as tools. This is only mentioned obliquely in the documentation...
View ArticleSpatial Reference question
Hi Everyone, I am using the search cursor. I want to change the spatial reference on the fly. I believe this can be done with spatial_reference. the input shapefile is in UTM 19N. I want the extents to...
View ArticlePrepare Map package with time info layer (DIFFICULT)
Hello, DIFFICULT QUESTION. In Python, I want to prepare a map package that will contain precipitation forecast. I have been able so far to do everything from reading ascii files and prepare map package...
View ArticleArcGIS Desktop Install Directory (XSLTransform_conversion)
We are moving to 64-bit Windows 7 but many of our users are still on 32-bit Vista. Some of our python scripts use the XSLTransform_conversion command which takse an xslt file as one of its parameters....
View ArticleImport Script greyed out
I've noticed that at (seemingly) random intervals the Import Script option in the right-click menu for Python tools will grey out, like so: Attachment 19593 If the script is cached as well (which is...
View Articledraw rectangle to clip layers using pythonaddin
I want to clip rasters in data view using interactive rectangle (to define Area of Interest) and add them to current dataframe. Following is a piece of code which is not returning anything. Any...
View ArticleReading the record values in several specific locations of a shapefile
Hello everyone! I have tried the following code: Code: from osgeo import ogr LandUse = ogr.Open("C:\\Python26\\ArcGIS10.0\\landuse shpfile (polygon)\\landuse.shp") lyr = LandUse.GetLayerByName("landuse...
View Articleintegrating python(x,y) into ArcGIS 10.1 instead of python 2.7
Hi everyone, I´d like to install ArcGIS 10.1 but using my already installed python(x,y) instead of taking further MB space. Someone knows how to accomplish this? Thanks and regards, Mathias
View ArticleInteractive User screen input by Rectangle or Point
How do I re-write the below code to work in ArGIS 10.1? Do I use Python and if so what would the code look like? Does Python allow user interactive screen input to select objects the way Avenue does?...
View ArticleThe old ArcScripts Forum
Is it me or is the current ESRI forum(s) a pale rendition of the former glory of the ArcScripts forum in terms of the volume of scripting solutions readily available and number of new...
View ArticleSave lyr-files from multiple files of the table of contents
Hallo, I would like to save lyr-files from multiple Features in the table of contents. This works: PHP Code: import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") for lyr in...
View ArticleProgram for a Dialog Box
I am wanting to open an mxd and have a dialog box pop up to have the user answer some questions and then it draws the map they requested from the dialog box answers. Does anyone know where to go to get...
View ArticleSpatial Reference
Hi everyone, i'm makeing a metadata tagging script using tagged text elements in my layout. I'm having an issue with pulling the coordinate system of the dataframe into a useable format. this is...
View Article