|
POST
|
You may consider changing the onFocus to populateCombobox function and recreate onFocus calling populateCombobox and then you could also call it from your clear selection button.
... View more
03-08-2016
10:01 AM
|
1
|
1
|
653
|
|
POST
|
Do you have it working now? Are you planning on repopulating with your clear selected button?
... View more
03-08-2016
09:18 AM
|
1
|
3
|
2642
|
|
POST
|
Sounds right to me. let me know how it turns out. I tested the code in my armap python interpreter and it selects only the features that intersect with data frames extent. You may want to change the data frame [0] to the active data frame.
... View more
03-08-2016
08:00 AM
|
0
|
8
|
2642
|
|
POST
|
Sounds similar to Limit combobox results to map extent you may need to create a polyline object then use a select by location
... View more
03-07-2016
10:30 AM
|
0
|
1
|
1290
|
|
POST
|
Did you see this post Dynamically Select Feature in Map with Python Addin EDIT: Looks like you'll need to add something similar to below mxd = arcpy.mapping.MapDocument('current')
df = arcpy.mapping.ListDataFrames(mxd)[0]
extent = df.extent
extentPoly = arcpy.Polygon(arcpy.Array([arcpy.Point(extent.XMin, extent.YMin), arcpy.Point(extent.XMin, extent.YMax), arcpy.Point(extent.XMax, extent.YMax), arcpy.Point(extent.XMax, extent.YMin)]))
arcpy.SelectLayerByLocation_management(yourlayer, 'intersect', extentPoly )
... View more
03-07-2016
09:10 AM
|
1
|
10
|
2642
|
|
POST
|
>>> import os
>>> mypath = r"Some\path"
>>> if os.path.exists(mypath):
print 'do stuff' Edit: Here is a better example: Consider you have a file structure like below now if myfile points to the proper directory you would do the following for root, subfolders, files in os.walk(myfile):
if os.path.exists(os.path.join(root,'New Text Document1.txt')):
print 'yes'
... View more
03-07-2016
07:04 AM
|
0
|
0
|
1580
|
|
POST
|
This works without the ')' >>> import arcpy
>>> toolList = arcpy.ListToolboxes('*analysis')
>>> toolList
[u'Analysis Tools(analysis)']
... View more
03-07-2016
06:02 AM
|
0
|
1
|
1267
|
|
POST
|
Have you tried the Merge—Help | ArcGIS for Desktop tool. If they are all the same format you should be able to combine them into one, you may have to rename the files so they all don't have the same name. Seems I read something a while back were having files with same name was an issue. Edit: You may also be interested in About loading data in ArcMap—ArcGIS Help | ArcGIS for Desktop
... View more
03-07-2016
05:52 AM
|
1
|
4
|
5525
|
|
POST
|
It may be easier to create a new data frame, insert your cad file and overlay the 2 data frames in your layout view
... View more
03-05-2016
06:41 AM
|
1
|
0
|
3896
|
|
POST
|
I hope this link works InsertCursor—Help | ArcGIS for Desktop please see the examples at the bottom of the page EDIT: You would create a field list like below: field_list = [field1,field2,field3] When you use the plus you are adding or concatenating: 1+1 =2 "value" + "othervalue" = "valueothervalue"
... View more
03-04-2016
07:02 AM
|
0
|
0
|
4324
|
|
POST
|
You are using a plus sign in your fields list which means it's trying to add them together. Change to insertCursor2 = arcpy.da.InsertCursor('SuperStrings_temp_out', [dissolveFields, "SHAPE@"])
... View more
03-04-2016
05:12 AM
|
2
|
2
|
4324
|
|
POST
|
Have you thought about using the Standardize Addresses—Help | ArcGIS for Desktop tool and joining the table and calculating the desired results.
... View more
03-03-2016
05:30 PM
|
1
|
2
|
2630
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 09-14-2015 01:29 PM | |
| 1 | 01-26-2016 10:18 AM | |
| 1 | 08-18-2015 06:01 AM | |
| 1 | 06-20-2016 12:34 PM | |
| 1 | 01-19-2016 06:13 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|