|
POST
|
I was just testing the Copy and Project to show that you are perhaps going down the wrong path. I did not see anything that stuck out. If I were you I might comment out as much as you can and maybe test it line by line until the behavior is reproduced to find your smoking gun.
... View more
04-02-2019
01:42 PM
|
0
|
0
|
2294
|
|
POST
|
What I was pointing out was that if you look at the numbers, on the original photo, they are not +1, this shows that the copies of the main feature classes are getting copied more than are getting put on the TOC. I simplified the code and ran it and was not able to reproduce this problem. Also, after reading the Project documentation I found I steered you down a wrong path, you cannot use the in_memory for that particular tool. Which is why you got that error. import arcpy
arcpy.env.overwriteOutput = True
output_gdb = r"C:\\Users\\mdriscoll\\Desktop\\New Folder\\abc\\Default.gdb\\"
exclude_list = ["A","E"]
fc = output_gdb + "pnt"
with arcpy.da.SearchCursor(fc,"*") as cursor:
copy = output_gdb + "copy"
outCS = arcpy.SpatialReference('NAD 1983 UTM Zone 11N')
outputCS = output_gdb + "copy_proj"
for row in cursor:
field = row[2]
if field in exclude_list:
continue
else:
arcpy.CopyFeatures_management(fc,copy)
arcpy.Project_management(copy, outputCS, outCS)
print(field)
... View more
04-02-2019
01:03 PM
|
0
|
2
|
2294
|
|
POST
|
Nothing really sticking out here for the reason of the behavior. I really do think it is something in your code and not a bug for the following reason: The original example screen shot shows that a copy is getting created a lot but only every other third ends up in the table of contents. So it seems like it still creates a copy when it is in your exclude_list (continue) but does not go into your TOC. I do agree that it creating a new copy of the original on every loop and some of them getting added to the TOC is a major factor to slowing it down.
... View more
04-02-2019
12:08 PM
|
0
|
4
|
2294
|
|
POST
|
Click on the field and hit the Delete button on your keyboard.
... View more
04-02-2019
09:52 AM
|
0
|
0
|
942
|
|
POST
|
You need to create an event on the ComboBox.SelectionChange. Inside that event handler use button.Enabled = true;
... View more
04-02-2019
06:31 AM
|
0
|
0
|
1881
|
|
POST
|
Hard to say without seeing the code. You may not be finishing the loop cleanly before moving onto the next one. If it is clean I recently learned that MapView.Redraw was introduced in 2.2, you might give that a try before moving onto the next one.
... View more
04-01-2019
11:04 AM
|
0
|
0
|
2945
|
|
POST
|
I believe you still need to make a feature layer from your feature class if you are going to run it in_memory.
... View more
04-01-2019
10:04 AM
|
0
|
2
|
2945
|
|
POST
|
BUG-000121285 : Angle Alignment set to "Display" is not honored after printing the map directly from ArcGIS Pro 2.3.1 Status : New
... View more
03-29-2019
06:30 AM
|
2
|
0
|
3443
|
|
POST
|
It will show up in the middle of your screen. Message boxes will not display if you started the application within Visual Studio. Run the add-in directly from a native Pro startup.
... View more
03-29-2019
06:05 AM
|
1
|
0
|
2243
|
|
POST
|
You also might try creating the features in memory, there would be no need to delete them.
... View more
03-28-2019
11:18 AM
|
0
|
0
|
2945
|
|
POST
|
It might have do with what version the ECW is. Here is an old thread I came across when I was having the same problems.
... View more
03-28-2019
11:02 AM
|
0
|
0
|
15877
|
|
POST
|
clipLayer = arcpy.Clip_analysis(RouteLayer, StateLayer, GDB + "\\" + name + "_Clip") You need the \ in the path.
... View more
03-28-2019
10:37 AM
|
1
|
2
|
5349
|
|
POST
|
So it creates the feature but the feature is empty?
... View more
03-28-2019
08:43 AM
|
0
|
1
|
5349
|
|
POST
|
I think it's the way you worded the output, try this for your next line. clipLayer = arcpy.Clip_analysis(RouteLayer, StateLayer, NewLocation + "/Clip") If you want it as a variable. GDBvar = arcpy.env.workspace + "\\" + FileGDB_name
... View more
03-28-2019
08:11 AM
|
1
|
3
|
5349
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-23-2026 09:28 AM | |
| 2 | 05-21-2026 09:21 AM | |
| 1 | 05-19-2026 02:25 PM | |
| 1 | 05-19-2026 08:11 AM | |
| 1 | 04-17-2026 01:08 PM |
| Online Status |
Offline
|
| Date Last Visited |
05-28-2026
06:06 AM
|