|
POST
|
1. Use add-in wizard to set up add-in 2. Edit .py file in install/ to your liking 3. Run makeaddin.py 4. Double-click the .esriaaddin file to install
... View more
08-17-2011
08:23 AM
|
0
|
0
|
1066
|
|
POST
|
The wizard is mostly for setting up the controls, but you can reopen an add-in project as much as you'd like. The Python gets backed up just in case you have already made edits -- you can then use a tool like winmerge to reconcile your old .py file with the newly generated one.
... View more
08-17-2011
08:21 AM
|
0
|
0
|
749
|
|
POST
|
You can set up an output parameter of type string and then use SetParameterAsText to populate the value at the end of your script.
... View more
08-11-2011
09:52 AM
|
0
|
0
|
1689
|
|
POST
|
You may need to either use a full path to your object or set the arcpy.env.workspace value before your Describe: arcpy.env.workspace = os.path.abspath(os.path.dirname(__file__))
... View more
08-05-2011
10:26 AM
|
0
|
0
|
2395
|
|
POST
|
Is there a reason you're compiling to an .exe? To obscure the code or because you're bundling third party modules? If you're just trying to obscure the code, you can have two files (in the same directory) like this: tool_implementation.py import arcpy
def main():
<your geoprocessing script> tool_gp.py import tool_implementation
tool_implementation.main() Then set the path of the script tool to tool_gp.py in your toolbox, and run it once. Once tool_implementation.pyc exists, you can delete tool_implementation.py and your implementation will be obscured.
... View more
08-04-2011
08:42 AM
|
0
|
0
|
2395
|
|
POST
|
You can pass in a PointGeometry as an input, like so: SelectLayerByLocation(in_layer=arcpy.PointGeometry(arcpy.Point(x, y)), select_features="mylayer")
... View more
07-22-2011
09:23 AM
|
0
|
0
|
1498
|
|
POST
|
There's WSGI, which is an open standard that allows you to develop in Django, or Pyramid, or web.py, or flask, or any of a number of other options. Flask or web.py are probably your best bet for porting from CGI. If you run a web application that handles multiple requests in the same process (that is, running a Python WSGI server behind your IIS instance) then you don't incur the overhead of importing arcpy over and over.
... View more
07-15-2011
12:28 PM
|
1
|
0
|
1192
|
|
POST
|
"NotInitialized" is a licensing issue. Does ArcMap open correctly?
... View more
07-13-2011
08:25 AM
|
0
|
0
|
1972
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-26-2012 02:46 AM | |
| 2 | 01-06-2011 08:22 AM | |
| 1 | 03-25-2014 12:18 PM | |
| 1 | 08-12-2014 09:36 AM | |
| 1 | 03-31-2010 08:56 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|