|
POST
|
it would be something like:
sqlClause = (None, "ORDER BY Field1 ASC, Field2 DESC")
arcpy.da.UpdateCursor(inFC, fields, sql_clause=sqlClause)
Make sure any fields you use in the sql expression are also passed in the field_names parameter.
... View more
08-13-2012
01:13 PM
|
0
|
0
|
1632
|
|
POST
|
In ArcMap go to Customize > Extensions and make sure your extension is checked on. I need to follow-up on auto-load because I was under the impression that this property would take care of it, but i can reproduce the same where the extension is not automatically being enabled in the extensions dialog.
... View more
07-16-2012
12:40 PM
|
0
|
0
|
916
|
|
POST
|
If you are experiencing this problem please try going to the directory below and rename the E3 folder to E3Old: (Win7, Vista) C:\Users\username\AppData\Local\Temp\ or (WinXP) C:\Document and Settings\username\Local Settings\Temp Then restarted ArcGIS Explorer. We found a problem with the website that was preventing files from being downloaded that was causing this issue that has been resolved.
... View more
07-16-2012
11:00 AM
|
0
|
0
|
632
|
|
POST
|
You can work with application events with Python now at 10.1 with python add-ins. If I understand correctly you want to be able to move from page to page in ArcMap and have the rotation of a second data frame match that as the first. I was able to do this with a python add-in. If you read through the guide book linked above it will walk you through creating an add-in, but essentially this is what you would do: 1. Create a python add-in with an extension that implements pageIndexExtentChanged 2. Add the following code inside the pageIndexExtentChanged function:
def pageIndexExtentChanged(self, new_id):
mxd = arcpy.mapping.MapDocument("Current")
df1, df2 = arcpy.mapping.ListDataFrames(mxd)
df2.rotation = df1.rotation In the code above df1 is my data frame with ddp enabled and df2 is the other data frame I want to have the same rotation.
... View more
07-13-2012
08:13 AM
|
0
|
0
|
916
|
|
POST
|
Yes, you can do this. This is how I was able to accomplish it: 1. Copy your .pyc file into the install folder of the add-in project 2. In the .py file that is created from the add-in wizard add the following code after the import statements: import sys, os sys.path.append(os.path.dirname(__file__)) import yourmodulename
... View more
07-13-2012
07:53 AM
|
0
|
0
|
776
|
|
POST
|
Mike, It appears to be working correctly. Mountain Standard Time is UTC-7, ie 7 hours behind UTC. In addition, right now we are observing daylight savings time which means Mountain Time is actually UTC-6, so 1:09 PM Mountain Time is 7:09 UTC.
... View more
06-22-2012
03:24 PM
|
1
|
0
|
382
|
|
POST
|
Hi Rolando, Yes, you will want to use the DataFrameTime class in the mapping module to get this information. Below is an example:
import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd")
df = arcpy.mapping.ListDataFrames(mxd, "Traffic Analysis")[0]
time = df.time.currentTime
... View more
05-02-2012
10:22 AM
|
0
|
0
|
617
|
|
POST
|
Hi Kim, To make a change to your python script you should close out of the application, rebuild and install the add-in and restart the application. Behind the scenes what happens when you start the application is the addin is copied and unpacked to the local assembly cache, which is where the code is executed from. Everytime the application starts up it checks the addin folder and if the addin is different from the one in the local assembly cache the application will overwrite the old version. This is the same behavior for .Net and Java addins as well, if you need to modify the code you will have to rebuild the add-in, install and restart the application.
... View more
04-24-2012
10:15 AM
|
0
|
0
|
1102
|
|
POST
|
The attached Toolbox contains a model that may be helpful in working around this issue until the bug is resolved. It has proved helpful for some customers.
... View more
04-10-2012
10:59 AM
|
0
|
0
|
1402
|
|
POST
|
Hi Peter, NIM071964 and NIM068933, duplicate issues, has been resolved in 10.1. In regards to NIM069071 and NIM066191, duplicate issues, these bugs have been rejected as non-reproducible. The issue with these bugs is there was a step that was not taken that is necessary to set the environment variable "Maintain fully qualified field names" to false. To set this environment variable you have to do the following two steps: Check on "Maintain fully qualified field names" under Model > Model Properties > Environments Click "Values..." and under the Fields dropdown uncheck "Maintain fully qualified field names" I understand this may seem a little counter-intuitivie but in the first dialog you are setting the environment variables whose values you want to to override. In the second dialog you are actually setting the value of the overriden environment variables. This is the same procedure for all other environment variables in the Model Properties.
... View more
03-30-2012
08:38 AM
|
0
|
0
|
619
|
|
POST
|
If you are at 10 sp3 and performing the field calculation on a layer that participates in a join there is a bug where the field calculate will process all the rows instead of the selected row, NIM076496.
... View more
02-22-2012
09:17 AM
|
0
|
0
|
1200
|
|
POST
|
Here is one way to do it: for i in range(1, 600, 1):
print ((6 - len(str(i))) * "0") + str(i)
... View more
02-14-2012
02:54 PM
|
0
|
0
|
2875
|
|
POST
|
Unfortunately Reports at ArcGIS 10 do not support working with related tables. This functionality will be supported at ArcGIS 10.1.
... View more
01-18-2012
08:47 AM
|
0
|
0
|
909
|
|
POST
|
Thank you for the information, I think the next best step would be for you to log this issue with Technical Support so that the issue can be narrowed down further and potentially get a bug logged.
... View more
12-20-2011
02:22 PM
|
0
|
0
|
186
|
|
POST
|
Interesting, it may be a bug. I tested with some of my own data and your code and could not reproduce the issue, everything updated as expected. What workspace type are you going from for the layers you are updating? What version of SDE and DBMS are you going to?
... View more
12-13-2011
01:03 PM
|
0
|
0
|
1385
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-02-2011 03:59 PM | |
| 1 | 06-10-2011 08:37 AM | |
| 1 | 06-08-2011 04:27 PM | |
| 1 | 06-07-2011 03:11 PM | |
| 1 | 01-31-2013 02:36 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|