|
POST
|
Michael- If you run it in task scheduler, it will open with whatever the file association is, so it is possible that it is opening with the 64 bit version of Python. Just to be safe, it is a good idea to write a batch file that points to the 32 bit version of Python and then runs your script in that version. -Luke
... View more
03-07-2013
07:23 AM
|
0
|
0
|
1894
|
|
POST
|
You can definitely install ArcGIS 9.3 on Windows 7 32 bit. I would check into the system requirements and see if you are missing something. Otherwise, are you getting an error message, or what is causing you to not be able to install it?
... View more
03-07-2013
07:19 AM
|
0
|
0
|
1275
|
|
POST
|
Unfortunately, if you are talking about NIM006938 (which is referenced in that KB), then it is not fixed. The reason being is that it is a limitation of the Windows GDI graphics engine we use.
... View more
03-07-2013
07:12 AM
|
0
|
0
|
754
|
|
POST
|
Out of curiosity, if you put the add in in C:\Program Files (x86)\ArcGIS\Desktop10.1\bin\Addins and install it from there, does it work? I recently saw a case where this worked but haven't been able to come up with a reason yet.
... View more
03-05-2013
03:42 PM
|
0
|
0
|
643
|
|
POST
|
The reason it worked when I had it in a function is because the variables were automatically deleted once the code in the function completed successfully. Since I was able to reproduce the issue, I logged the following bug for this: NIM089529: The data access arcpy cursors do not release locks when using with statement. -Luke
... View more
03-05-2013
02:03 PM
|
0
|
0
|
3181
|
|
POST
|
Interesting. So here is what I found. The IDE does not make a difference. When I run it and it gets rid of the locks, I use the following syntax: import arcpy
def main():
fc = r"C:\TestData\500ft_Grid.shp"
fields = ["*"]
with arcpy.da.SearchCursor(fc, fields) as cursor:
for row in cursor:
print(row)
if __name__ == '__main__':
main()
When I take it out of a function and just do the following, the sr lock remains: fc = r"C:\TestData\500ft_Grid.shp"
fields = ["*"]
with arcpy.da.SearchCursor(fc, fields) as cursor:
for row in cursor:
print(row) I'll have to get back to you with more information. Luke
... View more
03-05-2013
12:14 PM
|
0
|
0
|
3181
|
|
POST
|
Yes, I was viewing the locks through Windows Explorer as well... I am at 10.1 SP1 with Windows 7 64 bit as well. I ran it through PyScipter, so I will test it in PythonWin and let you know.
... View more
03-05-2013
12:07 PM
|
0
|
0
|
3181
|
|
POST
|
Oh, sorry I didn't understand correctly. Something like this should do the trick: def count(a,b,c,d,e):
x = 0
if len(str(a)) != 0 and str(a) != "None":
x +=1
if len(str(b)) != 0 and str(b) != "None":
x +=1
if len(str(c)) != 0 and str(c) != "None":
x += 1
if len(str(d)) != 0 and str(d) != "None":
x += 1
if len(str(e)) != 0 and str(e) != "None":
x += 1
return str(x) And the bottom should be: count( !field1!, !field2!, !field3!, !field4!, !field5!)
... View more
03-05-2013
12:04 PM
|
0
|
0
|
2208
|
|
POST
|
If it is showing up as undefined and you know the correct coordinate system, use the Define Projection tool to set the correct cs.
... View more
03-04-2013
01:35 PM
|
0
|
0
|
427
|
|
POST
|
I tested this with a few shapefiles and it releases all of the locks for me. I am at 10.1 Service Pack 1, Windows 7 64 bit. What is your set up? Perhaps the issue is specific to a different configuration. Otherwise, could you try this on a co-worker's machine and have another user log into your machine to see if the issue persists?
... View more
03-04-2013
01:00 PM
|
0
|
0
|
3181
|
|
POST
|
Maybe you can just use Feature Envelope to Polygon tool after you create the buffers?
... View more
03-04-2013
11:13 AM
|
0
|
0
|
9713
|
|
POST
|
I would use the Calculate Field tool. Use Python as the parser, and set the pre-logic script code to something like: [PHP]def count(a, b, c, d): e= str(a) + str(b) + str(c) + str(d) return len(e)[/PHP] The bottom should just be: [PHP]count(!Field1!, !Field2!, !Field3!, !Field4!)[/PHP] This will feed in these 4 fields to the function, concatenate all of the strings together, then grab the length of the string.
... View more
03-04-2013
11:09 AM
|
0
|
0
|
2208
|
|
POST
|
I think these might be guides in your layout. The page layout help talks about them a bit. Try right clicking on the ruler on the left side of your layout and selecting Clear All Guides. Not positive, but would be worth a try.
... View more
03-04-2013
10:39 AM
|
0
|
0
|
4593
|
|
POST
|
I submitted a bug for this- NIM089244: Layer packages do not open in ArcGIS Explorer Desktop 2500 when the package is double clicked in windows explorer, if ArcGIS Explorer is not running.
... View more
02-21-2013
03:26 PM
|
0
|
0
|
485
|
|
POST
|
I'm getting some strange behavior. First, I am assigning the File Handler to Explorer for layer packages here: C:\Program Files (x86)\Common Files\ArcGIS\bin. Then, when I double click, the first time, I typically get an error and Explorer eventually opens with no data. I can see that the package is unpacking, however. Then, if I double click again, sometimes it opens successfully and sometimes nothing happens. I'll let you know as I find out more.
... View more
02-21-2013
01:58 PM
|
0
|
0
|
485
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-24-2025 10:45 AM | |
| 1 | 07-30-2025 08:26 AM | |
| 1 | 05-15-2025 07:35 AM | |
| 2 | 11-26-2024 01:27 PM | |
| 1 | 06-26-2015 10:19 AM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|