Creatin Mapbooks with Insets
Does anyone know how to create (or modify) a script which shows multiple insets on one page in a mapbook? I followed the script found here (http://resources.arcgis.com/en/help/...00000031000000) for...
View ArticleVBA: If Then with OR
Hello, I'm tryng to populate a field with this VBA code but it doesn't work. I really appreciate any help you can provide. Dim codigo as string If [CAMPO]="Captura" OR [CAMPO]="Replanteo" OR...
View Articleautomate calculating arc length?
I'm working on writing a script for a viewshed model that will calculate the output of a viewshed in degrees. I'm basing this off of previous research that essentially buffers an observation point by a...
View ArticleClose ArcMap using Python AddIn Extension
I've written a couple of Python scripts that open ArcMap, run a Python AddIn Extension, then hopefully close ArcMap. As an MXD document is opened, the AddIn extension runs the HTML Code: def...
View ArticleGeoprocessing from command window : how to generate a log file?
Hi , I have executed a simple PY script from the CMD window: # -*- coding: utf-8 -*- import arcpy, sys arcpy.SetLogHistory(True) arcpy.AddWarning("............... Does this message appear in the...
View ArticleAutomatically Select Records in Related Table
Hi, I have a simple one-to-many relationship class between an SDE feature class and a stand-alone SDE table and I have a feature selected in the map. Is there a way in python to automatically select...
View ArticleUpdateLayer not copying the labels
Using UpdateLayer or ApplySymbologyFromLayer_management copies the symbology but not the labels. When I tried to use UpdateLayer with a third argument of False I get an insertion error, so I am not...
View ArticleNeed help!
Okay im trying to find out if there is a way i can use the model builder to make a process that would make multiple point shape files from one point shape file so that i dont have to select, export a...
View ArticleSDE Connection error
We are trying to run a python script on the server on a feature class within an SDE database. The error code reads: ERROR 000732: Input Features: Dataset does not exist or is not supported. import...
View ArticleIssue with basic field mappings for spatial join
Hi all, My script is working except the field mappings. When I remove that parameter from the spatial join, it runs fine (but doesn't include the desired field in the output). When I add the...
View ArticleGetting FEATURE DATASET name - not FEATURE CLASS name - using Python
So, Has anyone figured out how to get the Feature Dataset name using Python when your data is residing in FeatureDatasets within the database? I see that the layer.datasetName is really the feature...
View ArticleCreating polygon xy data
I have center point LAT and LON data on polygons that I need to write a script to add fields in the same table with UL, UR, LL, LR. Has anyone done this?
View ArticleSelect Layer By Location different between stand-alone script and immediate...
I'm fairly new to arcpy, and I don't understand why this one line of code executes in immediate mode, but not in a stand alone script. Code: arcpy.SelectLayerByLocation_management("ProjectsLayer",...
View ArticleUnit Testing
Hi, Our python script library is starting to get large and complex to the point that we are introducing unit testing to keep problems manageable. Has anyone had any experience creating Unit Tests for...
View ArticleCustom ToolBar with custom commands and menus
Hi, I need to create a custom toolbar programmatically and add custom commands / menus to it. The whole toolbar needs to be persistent and be handed over to other people. In the last weeks I was...
View ArticleHow Can i use Arcpy to Calculate the Deviation of a pair of Coordinates
I have 4 pairs of Coordinates, all forming the corners of a parcel, have can I use Arcpy to automatically detect the outlier amongst the coordinate pairs. I'm thinking "arcpy.ClustersOutliers_stats" or...
View ArticleSplitting text between two text elements
I have a text string that is longer than my what my text element will display. I need to figure out a way to have the non-displayed text carry over to a second text element. Any thoughts on how to...
View ArticleArcGIS crashes on simple addin
Hi, I'm starting to develop add-ins for a project. I have a very simple button that opens a new tab with Google Search results based on whatever footprint is selected at the time. Here's the code:...
View ArticleAddress Errors Python Script tool
I downloaded de Address Errors Python Script tool from the Gallery http://www.arcgis.com/home/item.html...9b71c12e5626a2 and I get the Error 000576 "Script associated with this tool does not exist"...
View ArticleJoining excel worksheet to shapefile
I am a total newbie to arcpy and I am having trouble finding good examples of joining an excel worksheet to a shapefile. Basically what I am trying to do it join an excel worksheet with ZIP Code data...
View Article