Tagged Questions
0
votes
0answers
35 views
Dialogue/popup box in arctoolbox [duplicate]
I am using arcpy 10.0, python and arctoolbox. I was wondering if it is possible to have a dialogue box pop up within arctool box. I am familiar with
arcpy.AddMessage("Your message here")
...
2
votes
1answer
52 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 ...
3
votes
1answer
224 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):
...
1
vote
1answer
135 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 ...
4
votes
1answer
257 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
0answers
178 views
ArcPy TableToTable conversion does not work 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 ...
1
vote
3answers
909 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
99 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 ...
4
votes
2answers
168 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
239 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
490 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
333 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
321 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
434 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
83 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
418 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
139 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
207 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
974 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
140 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 ...
2
votes
1answer
383 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 ...
4
votes
2answers
904 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 ...
5
votes
1answer
768 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
739 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 ...
7
votes
1answer
251 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. ...