Quantcast
Channel: Forums - Python
Browsing all 2485 articles
Browse latest View live
↧

Python Add-In Edit a Feature Class

I am working on my first Python Add-In and am having a couple issues. What I am trying to do is create a tool that will allow the user to click somewhere on the map and take the map coordinates to...

View Article


Issues with updating layers and symbology labels

I am automating a series of maps in Arc 10.1 which involves looping through multiple dataframes replacing/updating layers. Updating the layers has worked fine except for one glitch- the symbology...

View Article


Help with AddFieldDelimiters in a code block

Hello, I am trying to do a field calculation using the CalculateField_management tool, which is run on shapefiles, feature classes in gdb, sde etc,. and would like know how to apply the...

View Article

Comparing Geodatabase Schema using python

Hi, Can anybody help me with some suggestions as to how to compare schema of two geodatabases through python scripting? What would be the simplest way to approach for this comparison using python code?

View Article

How do you force a GP tool to release it's output

I can see that I get a file lock on the KMZ output file after using MapToKML_conversion while still in the script, or still in Pythonwin. (I can't rename it, delete it etc). 10.1 SP1. My workflow...

View Article


currentTime is not supported on this instance of DataFrameTime??????????

Hi, I keep getting an error in my script tool when trying to prompt the user to specify the time for a dataframe thats properties have not yet been set in the time slider window. SCRIPT: import arcpy...

View Article

interval EsriTimeDelta and modifying the interval????

In the help it says that the timeStepInterval for a layer is read only, and EsriTimeDelta is read only, Therefore, how can you modify an interval if you cant have write access? This link:...

View Article

Field Calculator Script Help

The below script works as expected in PythonWin or any other IDE and I am attempting to adapt it to be used in the Field Calculator (ArcMap 10.1) but I am not getting the expected results. Expected...

View Article


Force the output of a tool to use a built in color ramp

Hello everyone, I am wondering if it is possible to force the output of a tool to use a specific color ramp using python code. I downloaded a tool that automatically creates filled contours from DEM's...

View Article


Image may be NSFW.
Clik here to view.

"python.exe has stopped working" on raster.save

I am attempting to perform raster calculations with in-memory rasters in a script using arcpy (ArcMap v10.0). I get this error from multiple different inputs and it occurs from multiple different areas...

View Article

Batch clip using arcpy script

Hi, I am a GIS student, just starting out with python, and I am working on a project in which I want to create a custom script tool to clip a list of feature classes in a municipality to a single clip...

View Article

can't export correct images using script tool, works fine in regular script

Hi, I am having trouble getting my script tool to export the currentTime and endTime with a hard coded interval of 1 hours. It works fine in my regular script without parameters but when I set the...

View Article

Python png export not including table on layout

Hello all, I have a layout that includes a table (created within ArcMap through a attribute table) and I am trying to export it as a png. However, when I try to export it through python, it doesn't...

View Article


Creating serial graphs with arcpy

Hello, I need to make export reports with graphs. One map and one graph for each selected feature in a loop. When I add the graph to the layout and set the graph so that it only shows the values of the...

View Article

Zoom to user-defined extent

Hello all, I am working on something that I think is pretty simple but it seems to be evading me at this time. I have a layer "Counties" and want the user to pick a County using sys.argv and then have...

View Article


arcpy.mapping.ListLayoutElements which element type to use?

I have a series of mxds that I have previously constructed which contain text elements and picture elements grouped. Their position within each mxd differs slightly. I would like to standardize the...

View Article

Calculate Field problem Please Help

Hi, I've written a script that narrows down a selection of points (cities) and then adds a field called CITYNAME to the feature class. I need to update the new CITYNAME field with the same values as...

View Article


Create Tin with multiple input features

This piece of code works just fine in my script and the TIN is output with no problems Code: arcpy.CreateTin_3d(TIN_name, coordsys, outputFC + " Shape.Z masspoints", Delaunay) However, when I try to...

View Article

Accessing same python script from multiple toolbox at same time

All, I have parked scripts in one location . And Multiple toolboxes are referenced to same python script file .. If the multiple users using different toolbox run the same tool (which is referencing...

View Article

Writing data from feature class to delimited text file

I have several feature classes with values that I would like to export to a tilda (~) delimited text file using a Python script. My customer says tildas are the easiest delimiters for him to work with....

View Article
Browsing all 2485 articles
Browse latest View live