|
POST
|
It would be the same process, only with the path to the .gif.
... View more
11-10-2013
10:20 AM
|
0
|
0
|
490
|
|
POST
|
Does the folder C:\temp\final_output exist? Try this in your code just in case: # Create a new, empty pdf document in the specified output location folder if not os.path.isdir(outDir): arcpy.AddMessage("{} did not exist; creating...".format(outDir)) os.makedirs(outDir) finalpdf_filename = outDir + r"\ArenacMB.pdf" if os.path.exists(finalpdf_filename): os.remove(finalpdf_filename) finalPdf = arcpy.mapping.PDFDocumentCreate(finalpdf_filename) if C:\temp\final_output does exist, you may not have permission to write to it.
... View more
11-07-2013
01:44 PM
|
0
|
0
|
1034
|
|
POST
|
You can't set more than one value for SERVER_CONNECTION_FILE as the function currently works. Please contact tech support to add an issue, it would be easy for me to fix in a service pack.
... View more
11-07-2013
07:27 AM
|
0
|
0
|
418
|
|
POST
|
Just a hunch, but is the tool overwriting its own toolbox? Is the copy routine to replace the .pyt in the same .pyt it's updating? File might be locked in that case.
... View more
11-06-2013
11:46 AM
|
0
|
0
|
494
|
|
POST
|
Original link to paper is here. Must have gotten messed up in pasting from Map Automation forum to here.
... View more
11-06-2013
06:36 AM
|
0
|
0
|
2343
|
|
POST
|
try calling self.refresh() at the end of your onFocus routine.
... View more
11-05-2013
08:58 AM
|
0
|
0
|
1670
|
|
POST
|
Say you have a tool called MyTool in C:\Users\me\my.pyt and you've given the toolbox the alias mynewtools. arcpy.ImportToolbox(r"C:\Users\me\my.pyt") arcpy.mynewtools.MyTool("a", "b", "c") This is all very clearly documented in the help.
... View more
11-01-2013
02:00 PM
|
3
|
6
|
8685
|
|
POST
|
When you import the toolbox you can call the tools.
... View more
11-01-2013
12:46 PM
|
0
|
0
|
8685
|
|
POST
|
You can't. The Python toolbox objects are isolated from your Python interpreter.
... View more
11-01-2013
12:25 PM
|
0
|
0
|
8685
|
|
POST
|
That is how you import a toolbox. What do you mean "access the parameters"? What are you trying to do?
... View more
11-01-2013
08:52 AM
|
0
|
0
|
8685
|
|
POST
|
It works for most basic types, so the same code would work on doubles/floats/ints/whatever as well.
... View more
10-31-2013
01:17 PM
|
0
|
0
|
1038
|
|
POST
|
Why don't you do the all of the inputs as parameters in the geoprocessing tool? I'm having trouble understanding why you also need an add-in to pre-fill what are essentially input parameters for a tool.
... View more
10-31-2013
11:34 AM
|
0
|
0
|
766
|
|
POST
|
Summary statistics is written in C++. It will be significantly faster than any Python solution.
... View more
10-30-2013
08:48 AM
|
0
|
0
|
1618
|
|
POST
|
An example: a, b = {1, 2, 3, 4}, {3, 4, 7, 10}
c = a - b
print c will print set([1, 2]) Or say we have two tables (table_one and table_two) with a field named "name". You want all the names in table_one that aren't in table_two. set_one = set(r[0] for r in arcpy.da.SearchCursor("table_one", "name"))
set_two = set(r[0] for r in arcpy.da.SearchCursor("table_one", "name"))
print "Items unique to table_one: {}".format(", ".join(sorted(set_one - set_two)))
... View more
10-30-2013
08:45 AM
|
0
|
0
|
1038
|
|
POST
|
Are you reading the documentation? It clearly says to use combobox.value.
... View more
10-30-2013
06:47 AM
|
0
|
0
|
607
|
| 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
|