Python toolboxes are geoprocessing toolboxes that are created entirely in Python for ArcGIS 10.1

learn more… | top users | synonyms

2
votes
1answer
29 views

Where can I find in depth documentation on modifying arcgis stylesheets?

Where can I find in depth documentation on modifying arcgis stylesheets? I have found some of the basics here : Changing tool dialog appearance I want to change the height on one element, the only ...
5
votes
1answer
204 views

Are there any distinct advantages of creating a Python Toolbox over a Custom Toolbox?

I enjoy making different geoprocessing tools to practice Python and to become more familiar with the arcpy modules. I've just been using a Custom Toolbox and then importing the Python script and ...
2
votes
1answer
63 views

How to convert Python (ArcPy) script into tool or toolbox script?

I've written a simple python script that allows me to quickly create a copy of a template Mxd, pointing to different shapefiles. The user specifies the new location, a name for the new mxd, then the ...
5
votes
2answers
87 views

Is there a way to refresh imported modules in a ArcGIS Python Toolbox?

When using a python toolbox (.pyt) in ArcMap, I'll typically follow a pattern where the .pyt file itself is simply a wrapper to collect input arguments and define the tools themselves. Supporting ...
1
vote
2answers
58 views

How to remove temporary layers so they don't show up in parameter lists

ArcGis 10.2, arcpy. I have several tools in a Python toolbox that have a feature class parameter. The parameter is defined as parameterType = “GPFeatureLayer”. When running several tools in ...
0
votes
0answers
43 views

Empty Clip results…Why?

Okay so I have a python script that I have added to a toolbox. I clip a gdb file with a shp to a gdb and I get an empty feature class. The gdb file to start is not empty, everything is in the same ...
1
vote
2answers
33 views

Prevent parameter defaults in service definition file

I have a Python toolbox with a single tool designed for 10.2. The tool is intended to be a geoprocessing service on a server. So I run the tool, and after it succeeds, I right click the result and ...
1
vote
1answer
63 views

Model Builder: Enable / Disable parameters based on Conditions / Preconditions

I have been working with Model Builder and am having trouble placing a precondition on an input parameter. However, I may be going about it in the wrong way and may just need a Python script. My ...
0
votes
1answer
64 views

Split an attribute Python 9.3 in modelbuilder expression? [closed]

Updated question Goal: I need to upgrade an existing Model-builder were the expressions uses Python 9.3. Workproces & Goal: My *.mxd Have 1 attribute field containing the following build: ...
1
vote
0answers
112 views

How to utilize GPSQLExpression data type in Python Toolbox

I am trying to write my first Python Toolbox for ArcGIS (neat stuff by the way). The tool is simple enough - it connects to SQL Server and downloads data for the user. The trick here is, I want the ...
1
vote
0answers
58 views

Getting null values using Point sampling tool in QGIS 2.0.1

I would like to obtain the information of a raster layer at some points. Apparently the Point sampling tool does the job. I have used this tool, and all the raster values extracted at specific points ...
0
votes
0answers
28 views

How to update ValueTable in ModelBuilder?

I have created a python toolbox script that will the update of the values in a ValueTable based on selections from other parameters. In the updateParameters when a parameter is changed I am updating ...
2
votes
1answer
145 views

How to define a Feature Set parameter for an ArcGIS python toolbox tool?

I'm trying to create an ArcGIS python toolbox tool which use a polygon for input. I want the user to be able to create the polygon when the tool is run. I know how to do this using both a ...
2
votes
1answer
194 views

arcpy FieldMappings for Spatial Join

I'm trying to create a python script tool to use within ArcMap 10.1. I created a Model and exported it as a python script and added custom field mappings for the first Spatial Join by reading through ...
0
votes
2answers
94 views

Adding Python Script to Custom Tool

I am probably making a simple mistake but can't seem to figure it out, only a beginner.The Select By Location Script is working and it exports to excel when it is run from Python GUI, it also works in ...
1
vote
1answer
133 views

How to use 'remap' in reclassify tool code in ArcGIS Python Toolbox

I am making a reclassify tool in ArcGIS python toolbox (.pyt) ... I am able to use the remap datatype but am not able to parse the information present in Remap in the Reclassify function's third ...
0
votes
0answers
53 views

Model Run from Python script

Ive broken a complex task down to a very simple excersise and still cant get it to work.... I need to set up a Python Scpript to Run a Model. model: "SelectTest" toolbox: ...
2
votes
1answer
70 views

Re-Distributing Python Toolbox

After reading this Esri article on how to distribute Python Toolboxes, I'm wondering how redistribution works? I have a few toolboxes that are in constant development, but would be useful to my ...
3
votes
1answer
134 views

How to perform Tool Validation in Python Toolbox?

I'm trying to make sure there is no '-' in the output filename, and if there is, to set an error (circle with the red 'X') so that the tool can't be run, and have a tooltip that explains the issue. ...
2
votes
2answers
298 views

ArcGIS 10.2 Geoprocessing Service based on Python Fails with IOError: “SDE” does not exist Failed to execute

I have a Python Script that inserts X,Y Point in the SDE Point Feature Class. It works fine when executed in ArcMap 10.2, but it fails with IOError when published as Geoprocessing Task service in ...
3
votes
1answer
77 views

How do I use variables inside a arcpy toolbox function? [closed]

I have a point file and I need to make a lot of buffers in specific increments but I can't figure out how to interate through a list inside the buffer function. Here is what I have: import arcpy ...
1
vote
1answer
156 views

How to set up parameters in Python toolbox tools?

I build a model builder and export it to python. How can I define parameters for python script in python properties? May you explain about Data type in script proprties? thanks alot
0
votes
1answer
85 views

How to flip line based on a distance with another feature class

I have two feature classes Line and point. So what I need is to change the flow direction based on a distance with a point feature class. If the start vertices is far from the point, the system ...
1
vote
0answers
45 views

Web-based thumbnail image in 'Item Description' for a Python toolbox [ArcGIS 10.1]

I'm using locally stored images as thumbnails in the Item Description for a python toolbox [ArcGIS 10.1]. I'd like to load the images from an online source so other users of the toolbox can still see ...
0
votes
1answer
247 views

How to debug Background Processing Error from ArcPy & Geoprocessing tools?

When I run a script in the background or Toolbox tools I will get a Background Processing Error. The script isn't the issue because it's happened several times today. When it does crash it will ...
2
votes
2answers
91 views

'DEFeatureClass' vs. 'IFeatureClass'

I'm writing an ArcGIS 10.1 .pyt toolbox to accept a feature class as input (not a shapefile). Referencing ESRI's online guide to 'Geoprocessing Data Types of Parameters and Environments' [PDF ...
-5
votes
1answer
167 views

Is Python Toolbox (.pyt) newly introduced in ArcGIS 10.1? [closed]

Is Python Toolbox (.pyt) newly introduced in ArcGIS 10.1? Was it there in ArcGIS 10.0? Thanks
0
votes
0answers
89 views

Assign spatial reference for 1000 different ECW raster datasets using 1000 different *.prj files through python programming or .net

I am having 2000 ECW raster datasets without spatial reference and also I have 2000 *.prj files in another folder. I know only the way as right click on raster datasets-->properties-->Spatial ...
1
vote
2answers
160 views

Median value for a case within ArcGIS 10.1

Similar to this post (ArcGIS median value from a layer) I am looking for a toolbox to get the median value for a data field by a case. For example, say I have dataset with percent tree cover for each ...
7
votes
2answers
423 views

Is there a compelling case to learn/use Python Toolboxes (new at ArcGIS 10.1) over Python Script Tools?

I've written a few Python Toolboxes (which are new at ArcGIS 10.1), but am yet to decide whether/when I should write them rather than Python Script Tools in a standard toolbox. I thought the Online ...
3
votes
1answer
675 views

How to use a feature set as an output parameter in a Python Toolbox?

I'm having trouble setting a "Feature Set" output parameter from a .pyt .. I'm using ArcGIS 10.1 SP1. Here’s a short script that can be invoked either from a classic toolbox (thru the main() ...
4
votes
3answers
456 views

define parameter descriptions in ESRI Python Toolbox

I'm trying to create some Python Toolboxes for our ArcMap application (e.g. MyTool.pyt) I can see that the help text is defined with the classes self.description attribute. However, once I run the ...
1
vote
2answers
545 views

Select Layer by Location - Arcpy - Why are my inputs being interpreted as invalid?

I am working on a tool in a python toolbox and am totally confused about what is going on and causing my select by location operation to fail (Error 000368). I am trying to select the features in one ...
1
vote
0answers
80 views

Are multiple separate feature classes more efficient than repeatedly deleting all features from the same feature class?

Quick Version: Is it more efficient, in terms of database performance, to have multiple separate temporary feature classes or one feature class that you repeatedly empty out and fill? I am working ...
1
vote
1answer
302 views

XY event layer doesn't work with ArcGIS Server 10.1

I have a geoprocessing tool written in Python that contains operations on an XY event layer. It worked perfectly when running from ArcCatalog. When published as geoprocessing service on ArcGIS Server ...
5
votes
2answers
524 views

Using Custom Functions in a Python Toolbox

I am trying to put together a python toolbox (Arc 10.1) and would like to use a defined function in my code. The function is: 'sys' is imported at the top of the file def listdirs(folder): ...