1
vote
2answers
30 views

Parcel Map - How Many Acres of Feature X fall Within Each Parcel

Can someone recommend a good tool for ArcGIS that would help summarize how many acres of a polygon feature occur within each parcel in a separate layer. I have a layer containing a few hundred ...
2
votes
0answers
20 views

How to snap dangling nodes with prescribed angle?

I have got a streets shape file, to snap the dangling nodes in ARCGIS. But, I have to snap only some nodes(of feature) with a prescribed angle (green node in the image, and the angle marked in ...
-1
votes
3answers
52 views

ArcGIS arcpy code fails in Toolbox mode

This code executes correctly in Python window but fails with ERROR 000732: Input Table: Dataset JHJ does not exist or is not supported # Import ArcPy and other required modules import arcpy ...
0
votes
1answer
34 views

Set the parameter values retreved from database in Arcgis script tool in toolbox using python [closed]

I am now thinking a function to allow user to modify his information stored in the database. To do this, I developed 2 script tools in ArcGIS(10.2), One is the ask user to input his ID, the other one ...
1
vote
1answer
67 views

how to assign keyboard key to python script in arcmap

I have a python script and I use it through my toolbox but I use it many times in a day. Is it possible to assign a keyboard shortcut to my tool ?
0
votes
0answers
50 views

Programmatically add paramaters to ArcToolbox based on number of FCs in GDB?

I'm creating a custom geoprocessing tool. If a user inputs a GDB with a variable number of feature classes (FC), how can I retrieve and add a list of the FC to the tool? If the user doesn't add a ...
2
votes
1answer
289 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 ...
0
votes
1answer
45 views

Trying to script an export using individual selections based in excel

I am currently using Data Driven Pages to select a large group of blocks, and exporting them using a field name (after they have been related to the Excel spreadsheet). The problem is that ALL of the ...
0
votes
1answer
63 views

ArcToolbox model run but warning output in Python

I have created an ArcToolbox and a Model in the toolbox. It uses a lot of Spatial Analyst tools and deals with raster images. When I imported the toolbox in a Python script and ran the model from ...
1
vote
1answer
46 views

Trigger a custom ArcToolbox tool outside Model Builder

I have created a model in a custom Arc Toolbox with Model Builder in ArcMap 10.1. Is it possible to trigger the model outside Model Builder and ArcMap? For example, use a Python script to trigger the ...
1
vote
1answer
156 views

How to reset ObjectID after running Delete_Features on SDE feature table?

I have a python script that deletes all features on a SDE feature table and then inserts new features to it. I noted that the ObjectID keeps incrementing from where the last feature was with before ...
3
votes
1answer
100 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 ...
2
votes
0answers
72 views

Convert absolute file path to raster databaset [closed]

I wrote a simple python script that outputs an absolute path as string to a GeoTiff file. So this file can be treated as Raster. In a Model, the GeoTiff file is to be the input raster of a CopyRaster ...
1
vote
2answers
555 views

Python code does not work with RasterCalculator after exported from Model Builder

I have a model authored in Model Builder that uses "RasterCalculator" to process input raster datasets. arcpy.gp.RasterCalculator_sa("OutRas = Con(\"%STATIC_forestland%\" == 0, -255, ...
1
vote
1answer
464 views

Attribute error:'NoneType' object has no attribute

I tried to run a python script for getting the coordinate system of a feature/shapefile as follow >>> import arcpy >>> from arcpy import env >>> ...
2
votes
0answers
31 views

How to include checkbox or radio button in python script for arcgis tool? [duplicate]

I created an arcgis custom tool for converting an excel file to both kml and shapefile . Now I want to include radio button or checkbox to select according user interest for either kml or shapefile.
2
votes
1answer
107 views

Can I choose specific SDE version to create replica geodatabase from?

I'm trying to automate the process of exporting a replica geodatabase using the geoprocessing tools and eventually a Python script. I can't figure out how to create the replica from a specific ...
5
votes
2answers
680 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): ...
2
votes
1answer
387 views

arcpy.AddMessage and codepage problems

Some times in my tools I need to output Cyrillic text via arcpy.AddMessage function. Previously in 10.0 it was very easy. I had .py file of the tool saved in UTF8 codepage. This code wrote messages ...
2
votes
0answers
73 views

Removing FID as an option from ArcGIS Tool Validation Parameters

I am currently building a script tool which requires the user to select a sorting field from a list (built using a dependency on the featureclass). This Element is working fine, but I would like to ...
4
votes
1answer
623 views

Python console vs Toolbox script in ArcGIS

My question is similar to this post: Adding Layer in current session using ARCPY . My script works in ArcMap python console but not as a script in toolbox.I am running ArcGIS 10.0 SP4. The script is ...
0
votes
2answers
434 views

Why does TableToTable give ERROR 000732 when published to ArcGIS Server?

I have a python code that uses ArcPy command "arcpy.TableToTable_conversion" to convert a database table to a dbf file. arcpy.TableToTable_conversion The input table is from a SQL Server database ...
2
votes
3answers
2k views

“Dataset xxx does not exist or is not supported” using Table to Domain in Python

I have a directory of hundreds of *.csv files, containing code/description pairs for geodatabase domains. I'm trying to automate the creation of these domains using Python. If I manually run the ...
1
vote
1answer
135 views

ArcServer Geoprocessing Service

I originally posted this in the ArcGIS forums, but I haven't been getting any bites. I've developed a set of ArcToolbox Python scripts, which I've been using on certain projects for clients. The ...
5
votes
2answers
283 views

ToolValidator not doing anything

I have created a simple script tool which has a single parameter of type "String". I have written the tool validation to disable the input field (simply trying to learn tool validation). The ...
1
vote
1answer
636 views

Applying layer file not formating labels in ARCGIS 10

I'm applying layer files in ARCGIS 10 using the ApplySymbologyFromLayer_management command via a python script tool. The symbology part works fine but the lables are not formatting. It is my ...
7
votes
1answer
1k views

How can I auto-increment output file-names in Toolbox ESRI ArcMap 10

I have a simple tool which outputs a file. I would like the filename to be a number which increments every time the tool is run. How would I go about implementing this using the toolbox in ESRI ...
0
votes
1answer
473 views

Defining projection in arc toolbox (JSON to shapefile) in python

I have a arc toolbox which converts JSON txt file to a shapefile but we have to define the projection. How can I hard code the defined projection so that user don't have to input the projection ? ...
1
vote
2answers
708 views

How to automate relative filepath when adding a new toolbox to the arcmap catalog?

So I'm creating an arcpy script for a custom toolbox and I want to make it so that a user can essentially utilize the script in that toolbox without having to change the source path (which I made ...
1
vote
1answer
872 views

ArcGIS Python Script Tool Validation: Control Overwrite Behavior

I'm creating a script tool to read the USGS earthquake GeoRSS feeds. It works fine as a script with hardcoded values. The script also works fine as a tool for creating a new feature class for a given ...
1
vote
1answer
91 views

Other than the methods stated on the Desktop 10 Sharing Tools section, are there any other ways to distribute custom toolscripts?

Essentially I want to be able to distribute a custom script and it seems that I cannot create a .tbx file, so I looked into the other methods, but they are all only for Python modules it seems. What I ...
0
votes
1answer
1k views

How to find Q in m3/sec from a raster having Q in mm for hydro power calculation

I am having a raster file with runoff depth Q in mm which was obtained from SCS method. I want to calculate hydro power potential at any location on my DEM. In the formula Q is in m3/s but we are ...
2
votes
2answers
169 views

Exposing ArcInfo level liscenses to ArcView desktops via ArcGIS Server and custom python script tool

I have a script that uses an ArcInfo level tool. The script works great on my machine but uses an ArcInfo level tool which the ArcView users don't have. Is exposing these ArcInfo level tools ...
3
votes
2answers
253 views

Finding script location… dynamically

Should be a simple question... but those can be the hardest. I have created a script that uses ESRI's arcpy site package and it functions properly in a stand-alone environment. I am now trying to ...
3
votes
4answers
1k views

ArcMap 10.0 Python script tool - Have the script tool dialog box stay open past successful completion of script

Is there a way to have the script dialog box have the radio button that says "Close this dialog when completed successfully" unchecked for any user who runs the script tool? Is there configuration ...
3
votes
1answer
162 views

Anyone have a link for IN-DEPTH ArcGIS Toolbox documentation

I am looking for in-depth links for docs on parameter datatypes for adding custom scripts to a custom toolbox. For example, a parameter data type "Extract Values". What does this do? What config ...
3
votes
1answer
498 views

Adding Descriptions to custom ArcToolbox 9.3.1

I looked http://webhelp.esri.com/arcgiSDEsktop/9.3/index.cfm?TopicName=Setting_script_tool_parameters and couldn't find how to add Descriptions for each parameter in the script tool. I see how to add ...
7
votes
2answers
3k views

How to create a checkbox parameter in a ArcGIS custom Python tool?

I am working on creating an ArcGIS tool from a Python script I am writing. I am wondering if it is possible to have a checkbox parameter. Basically what I want to do is have a parameter where the ...
8
votes
1answer
2k views

How to create sidebar help information for custom arcgis script tools?

I have been creating custom gis tools with python via the arcpy module. I can set up the tool successfully with parameters and all, but I cannot figure out how to create help text that shows up on ...
1
vote
3answers
971 views

Return results to user of python script from ArcToolbox : EDIT 9.3

I have a script in a custom toolbox which sums the values in a given field. After the user indicates which field (currently I have them typing it in but would love to know how to get the ArcToolbox ...
8
votes
1answer
338 views

Running ArcGIS 10.0 Under Virtualenv

I am working on a Python package that has a mixture of command line tools and ArcToolbox tools. For Python development it is really useful to use VirtualEnv, especially when working with installers. ...