Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 71204

A site-package created by Esri to expose ArcGIS Desktop (ArcMap and ArcGIS Pro) geoprocessing, mapping, etc, to Python.

3 votes
0 answers
187 views

Arcpy code only works when run in two chunks, not as one piece [closed]

Here's my code: import os import arcpy from arcpy import env from arcpy.sa import * arcpy.env.workspace = r'H:\Arc' #dem = r'C:\Users\Lucy\Documents\GISthings\DCEW_VegStatistics\miscrasters\bare1m_fl_int … \arcpy\sa\Functions.py", line 255, in Con where_clause) File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\sa\Utils.py", line 53, in swapper result = wrapper(*args, **kwargs) File …
0 votes
1 answer
195 views

Select by attribute crashes ArcMap when used with search cursor, but not by itself

This is my code: import arcpy arcpy.env.workspace = "X:\GISData\blah.gdb" # loops through areas with arcpy.da.SearchCursor("ServiceAreas", "Area") as cursor: for row in cursor: # select an …
0 votes
1 answer
5k views

permissions problem with creating a new text file from the python interpreter in ArcMap? [closed]

I'm attempting to create a .txt file as the output from a larger python script I'm running within ArcMap. The code I'm having trouble goes like this: x = open('adfd.txt', 'w'), and my error message sa …