|
POST
|
Two examples of input: oldzip = 'WillCounty_Street.zip'
workspace_folder = r'C:\Users\jpilbeam\test' Thanks for asking. So, the end-user of this tool would input files to delete in the first parameter. The files in the workspace folder could be either a *.zip, *.shp or *.pdf. What I was pointing out was the separate scenarios I've tried . As in, what I've tried was: - setting the Data Type to File - setting the Data Type to File, and File Filter to zip; shp - setting the Data Type to Shapefile - setting the Data Type to folder. --This didn't make much sense, but i tried it anyway.
... View more
11-12-2025
10:49 AM
|
0
|
0
|
2272
|
|
POST
|
import arcpy,os
# delete old zips
def delete_old_parcels_zip(oldzip, workspace_folder):
arcpy.env.workspace = workspace_folder
# r=root, d=directories, f=files
for root, directories, files in os.walk(workspace_folder):
for file in files:
if file.endswith(oldzip): #.endswith accepts a tupule
#delete existing zips from folder
print("old zips deleted: {}".format(file))
arcpy.AddMessage("old zips deleted: {}".format(file))
arcpy.Delete_management(file)
if __name__ == "__main__":
#name of zip file with extension
oldzip = arcpy.GetParameterAsText(0)
# output folder
workspace_folder = arcpy.GetParameterAsText(1)
# delete
delete_old_parcels_zip(oldzip, workspace_folder) I'm having trouble getting this script to work as a script tool. It works fine as a stand-alone. I've tried a number of things in Pro Catalog Toolboxes: Properties > Execution panel > embedded Properties > Execution panel > external script Properties > Parameter 0: Data Type > File > Filter File (zip; shp) Properties > Parameter 0: Data Type > Shapefile Properties > Parameter 0: Data Type > Folder Properties > Parameter 1: Data Type > Workspace It doesn't throw any errors. But it produces no results. Basically, the tool is supposed to find a file based on user input and in the workspace and delete it. Note: I'm after learning to use if __name__ == "__main__" in a script tool.
... View more
11-12-2025
08:37 AM
|
1
|
9
|
2316
|
|
POST
|
@BethRomero Thanks, getting closer to what I'm expecting. Following up, question #s 1 and 2 still have unexpected results. Note: link above should reflect changes. unselect.gif 1. I switched to Search Radius. However, even after clearing the selection the schools are still highlighted. The highlighted selections in the map are added-to instead of being un-selected. JaredPilbeam2_0-1762190265286.png 2. All toggle switches have been turned off in Interactivity > Modify which helped. However, the label is still under the highlighted district that I seemingly have no control over.
... View more
11-03-2025
11:53 AM
|
0
|
0
|
986
|
|
POST
|
@BethRomero Hi, thanks for looking. Here is the app: https://willcountygis.maps.arcgis.com/home/item.html?id=c6e79531385d4b30acec5d2d661e81a8
... View more
10-28-2025
02:29 PM
|
0
|
0
|
1070
|
|
POST
|
JaredPilbeam2_1-1761680556600.png 1. Clicking on the map does nothing (i.e. provides no results) JaredPilbeam2_0-1761678772107.png 2. The searched address is behind the other layers and I know no way to move it up. remove.gif 3. No way to clear the results. Closing the search only removes them from the sidebar, not the map. There is no "Clear Results" button at the top of the screen, as with some of these solutions. I have to either refresh the browser or put in another search. labels.gif 4. I added labels to schools in the webmap. They do not appear after a search. They only appear without a search. JaredPilbeam2_2-1761683807915.png 5. Any way to move the related record above district info?
... View more
10-28-2025
01:37 PM
|
0
|
5
|
1107
|
|
POST
|
Thanks Dave! Yes, I was on v. 2.4.1.1. For some reason, even though I was signed in, Pro Package Manager was showing an update to v. 2.4.1.3 but did not have the usual Update button available. So, by that method I couldn't update. However, I was able to update through the python command prompt as an administrator. No more error.
... View more
10-22-2025
02:14 PM
|
1
|
0
|
1661
|
|
POST
|
Not sure what's causing this error. I did notice that the 2020 wildfires layer referenced in the 10-01 tutorial has been depreciated: c3c10388e3b24cec8a954ba10458039d It's throwing the error on the structures variable. I've been working through the jupyter cells and can't go any further because of the error. I've put the code so far here. The authors are Dave Crawford and Daniel Yaw. import arcgis
import time
gis = arcgis.GIS('home')
# get the layer for USA structures
item_id_structures = '0ec8512ad21e4bb987d7e848d14e7e24'
item_structures = gis.content.get(item_id_structures)
lyr_structures = item_structures.layers[0]
# get the layer for 2020 wildfires
item_id_wildfires = 'c3c10388e3b24cec8a954ba10458039d'
item_wildfires = gis.content.get(item_id_wildfires)
lyr_wildfires = item_wildfires.layers[1]
fset_single_wildfire = lyr_wildfires.query("FIRE_NAME = 'AVILA'")
fset_single_wildfire
# get the feature from the FeatureSet
wildfire_feature = fset_single_wildfire.features[0]
# get the geometry from the single feature
wildfire_geom = wildfire_feature.geometry
# get the wildfire name
wildfire_name = wildfire_feature.get_value("FIRE_NAME")
print(wildfire_name)
# Create a spatial filter to find structures that intersect the wildfire
wildfire_filter = arcgis.geometry.filters.intersects(
wildfire_geom, sr = wildfire_geom['spatialReference']
)
# Query the structures layer for structures that intersect the wildfire
structures = lyr_structures.query(
geometry_filter = wildfire_filter,
return_count_only=True
)
print(structures)
... View more
10-15-2025
12:06 PM
|
0
|
3
|
1808
|
|
POST
|
@JeffreyThompson2 Thanks for the idea. I guess I could have avoided all that and simply created one big image of all the text and images!
... View more
07-28-2025
12:15 PM
|
0
|
0
|
787
|
|
POST
|
JaredPilbeam2_1-1753725238949.png The above is the preview. Why do page elements not stay where I have them in the page (below)? JaredPilbeam2_0-1753725194724.png All I'm doing is adding Text and Images to a Sidebar. I'm not sure what Kept within the parent container does, but it doesn't seem to have any effect.
... View more
07-28-2025
11:01 AM
|
0
|
2
|
833
|
|
POST
|
Could be anything. Here's two things that pop into my head since I can't see your project. Could be there is a Definition Query set to show only certain fields and then forgot about. Right click layer properties > Definition Query. JaredPilbeam2_0-1753450326392.png Or look in the symbology. Maybe you don't have all the values added. JaredPilbeam2_1-1753450477653.png
... View more
07-25-2025
06:35 AM
|
0
|
1
|
3977
|
|
POST
|
I found a few lines referring to the file sizes allowed in the data-file-upload.tsx file. 10MB is the limit for a .csv file. That can't be what's stopping me. const MaxFileSize: { [key in SupportedFileTypes]: number /** bytes */ } = {
[SupportedFileTypes.CSV]: 10485760,
[SupportedFileTypes.GeoJson]: 10485760,
[SupportedFileTypes.Shapefile]: 2097152,
// KML size limitaion: https://doc.arcgis.com/en/arcgis-online/reference/kml.htm
[SupportedFileTypes.KML]: 10485760,
[SupportedFileTypes.GPX]: 10485760
} So, I looked to the Exceeded Max Records error in the same file, which is apparently 1000. But, I haven't seen where to change it yet.
... View more
07-24-2025
02:59 PM
|
0
|
1
|
2061
|
|
POST
|
@VenkataKondepati Yes, my question is referring to the dev edition. (1) I'm not sure how to get the source file of an out-of-the-box widget such as the Add Data widget. (2) I then was wondering where to tweak it.
... View more
07-24-2025
01:41 PM
|
0
|
1
|
2105
|
|
POST
|
The limit on the Add Data Widget is surprisingly small. It doesn't tell you the limit either. It won't even take a 46KB .csv file. That almost makes it kind of useless. I'm here wondering if I can manipulate the widget to increase the limit? Or can you even customize out-of-the-box widgets? EDIT: The actual error/warning reads: The number of records in <file> exceeds the maximum threshold.
... View more
07-24-2025
01:27 PM
|
1
|
5
|
2112
|
|
POST
|
This tutorial from 2017 has a Move Effect in the Format Polygon Symbol pane. JaredPilbeam2_0-1753298882313.png I've added a gradient stroke, but I don't see the Move Effect option. Where is it now? I'm on v. 3.5.2 JaredPilbeam2_1-1753298951935.png
... View more
07-23-2025
12:31 PM
|
0
|
2
|
757
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-25-2026 12:25 PM | |
| 1 | 05-04-2026 08:45 AM | |
| 1 | 04-20-2026 01:20 PM | |
| 1 | 07-24-2025 01:27 PM | |
| 1 | 11-13-2025 08:22 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|