|
POST
|
Have you tried simply adding the hosted feature layer to your ArcPro map? Does that bring the symbology into your map?
... View more
11-22-2024
07:36 AM
|
0
|
1
|
1331
|
|
POST
|
Changing those options and deleting the cache had no effect, the things I discuss above just randomly go blank. 😞
... View more
11-11-2024
03:54 PM
|
0
|
0
|
1822
|
|
POST
|
OK thanks for the ideas I will explore these tonight and report back, good or bad.
... View more
11-11-2024
07:26 AM
|
0
|
0
|
1871
|
|
POST
|
All, Much like this question I am experience very odd behaviour in ArcPro 3.4. I had updated from 3.3 to 3.4, my machine is running Windows 11, 32Gb, RTX3070. I have updated graphic drivers hoping that would solve the problem but it appears not to. So I open a project, everything is looking fine: I use query tool and sometimes the pop up shows the fields other times it completely blank... I choose to install the local help (rather than online), but often use both. If I click on help button it opens as normal sometime showing help contents, other times its completely blank... I like to see my geoprocessing messages when a tool is running, so I have ticked on show messages under options. Some times the messages show but then they stop displaying, its completely blank... Frustratingly I have update another machine at work, that's windows 10 and ArcPro 3.4 seems to be running fine. ☹️ When I experience the "blankness" the only thing that seems to get things back, for a limited time, before it all starts to disappear is to shutdown ArcPro and start again. Not a sustainable solution. Any ideas ESRI?
... View more
11-11-2024
05:13 AM
|
2
|
3
|
1918
|
|
BLOG
|
ESRI, Thanks for implementing the many improvements, which no doubt will be used immediately by developers/users. I'm pleased with seeing that a Polyline can now reverse its direction in arcpy, that will be very useful in all things to do with rivers. Also liking the ability to post a message in a model, that will very helpful! Now you just have to make ArcPro free... 😁 OK that's a request too far!
... View more
11-08-2024
08:01 AM
|
1
|
0
|
2670
|
|
POST
|
Dan/Anyone else interested, So Dan showed a numpy approach which was blisteringly fast. Ouch! But resisting the pull of numpy (because my brain does not think like that) it got me thinking about a different way of approaching this simple problem of overcoming the ever increasing slowness of the SelectLayerByLocation tool when called within a loop. My updated script which I show below burns through the same task now in 7 seconds, nice! It requires ArcPro 3.2 and above and makes use of the improved SearchCursor that can take a geometry as a spatial filter. import arcpy, os
import time
arcpy.SetLogHistory(False)
arcpy.SetLogMetadata(False)
fp = os.path.abspath(__file__)
dir = (os.path.dirname(fp))
lyrPoints = dir + r"\Test.gdb\testpoints"
lyrPolygons = os.path.join(dir + r"\Test.gdb\testpoly")
print(lyrPoints) # Prove to myself I actually have the full path to featureclass
# Grab the polygon from layer, there is only one polygon in the layer
with arcpy.da.SearchCursor(lyrPolygons, "SHAPE@") as cursor:
for row in cursor:
geom = row[0]
print("Polygon obtained! Area is: " + str(geom.area))
d=dict()
start_time = time.time()
for i in range(1,3000):
print("Step " + str(i))
# Use polygon as a spatial filter
with arcpy.da.SearchCursor(lyrPoints, ["id"], None, None, False, None, None, spatial_filter=geom, spatial_relationship="INTERSECTS") as cursor:
x = 0
for row in cursor:
x += 1 # Count rows in cursor
d[i] = x
end_time = time.time()
elapsed_time = end_time - start_time
print(f" Elapsed time: {elapsed_time:.2f} seconds")
... View more
11-04-2024
08:28 AM
|
1
|
0
|
2298
|
|
POST
|
I've come across this issue so it makes using the Add Spatial Join tool impossible to use in modelbuilder as you cannot predict that number. I think its a bug and have reported it to ESRI. But I suspect it won't get fixed. The Add Spatial Join tool was added to Arcpro 3.2. Consider not using that tool and using the classic spatial join tool. The key difference is that this tool creates an output and does not have that field qualification.
... View more
10-31-2024
08:14 AM
|
0
|
0
|
1113
|
|
POST
|
Dan, Can you share your modification of my original code so I can study how you script a spatial query with a numpy array? I'm less familiar with coding with numpy and your test runs are obviously superior to using the arcpy tool. Duncan
... View more
10-31-2024
03:35 AM
|
1
|
0
|
2358
|
|
POST
|
Dear developers, I have a script that loops over a dozen to may be several thousand overlapping polygons selecting data and counting the selections. This is all running OK except that over time it just gets slower and slower. I've narrowed it down to the Select layer by Location tool. Attached to this question is a zip file containing a folder with an arcpro project, two very simple dummy layers and a script that reproduces the problem with the supplied dummy data. If you run the script (testscript.py) in IDLE or VSCode, then initially its rocket fast but after about 1000 iterations is begins to slow down. As you will see in the script it is simply repeating itself so I would have expect the select tool to run at a constant speed. So my question why is it not and can it be fixed? I provide this example so that the user community can test what I'm saying and the developers behind arcpro have a real example of data/code that reproduces this issue. This is all happening on arcpro 3.3.2 on a machine with 16GB ram and SSD for a c:\ drive. Is it some sort of bug in the tool? Duncan
... View more
10-30-2024
02:02 PM
|
0
|
6
|
2425
|
|
POST
|
Sounds like you want to create a parameter that has a dependency to a layer parameter and that it takes multiple values. This is easy to set up. The basics are shown below. This will give the user experience of allowing you to select multiple fields:
... View more
10-28-2024
07:28 AM
|
0
|
0
|
852
|
|
POST
|
The summarize within tool is one of those python script tools created by esri. A deep dive into that code suggest common is a folder it imports from. Not sure why it would suddenly error and why it would suddenly take hours to process.
... View more
10-16-2024
04:18 AM
|
0
|
0
|
1249
|
|
POST
|
Looking at your log it seems to me it errors when the tool tries to distribute the work across the cores of your CPU. How about running the code with parallel processing turned off?
... View more
10-15-2024
05:02 AM
|
0
|
0
|
1402
|
|
POST
|
It's not possible to answer this question as you do not show what you do at the line "performing add join". I'm guessing that what ever you are doing there is creating a corrupted definition object which is the input to lblClass.setDefinition() and causes the script to catastrophically fail. I believe a limitation of accessing CIM is that there is no validation of the parameter, unlike tools you call in arcpy. So if you are not super careful in how you alter the definition object then you feed into CIM something that syntactically invalid and having by-passed any sort of validation you kill the script/application.
... View more
10-15-2024
04:51 AM
|
0
|
0
|
778
|
|
POST
|
You need to share your code as no one has a chance in answering this question. For a start the error is pointing to a module called common, did you create that, where is it? Also code that was running fine one day but now slowly the next strongly suggests its not the code that's changed its your input dataset. You need to provide detail on that too.
... View more
10-15-2024
04:30 AM
|
0
|
1
|
1270
|
|
POST
|
I don't believe that blue message area is exposed to arcpy. Or if it is, it is an undocumented capability. May be in some future release ESRI will allow developers to put a piece of text into it? What you can do is validate on each parameter of a python script tool you are building. So you could for example check if an input layer has a specific field, if it does not then you return an error message and the tool will not be allow to run. This ensures all parameters are valid for the code they are about to feed into.
... View more
10-15-2024
04:24 AM
|
1
|
0
|
1843
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-15-2026 07:35 AM | |
| 1 | 04-14-2026 06:38 AM | |
| 1 | 04-14-2026 04:16 AM | |
| 8 | 03-30-2026 10:12 AM | |
| 2 | 03-18-2026 08:16 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|