|
POST
|
What about something like this? inLayers = arcpy.GetParameterAsText(0)
inLayerslist = inLayers.split(";")
outFolder = arcpy.GetParameterAsText(1)
inPoly = arcpy.GetParameterAsText(2)
arcpy.AddMessage(inLayerslist)
arcpy.AddMessage(len(inLayerslist))
for index, lyr in enumerate(inLayerslist):
next_lyr = inLayerslist[index + 1]
arcpy.AddMessage(f"Extrude between {lyr} and {next_lyr}")
layerName = f"{lyr}solid{index}"
solid = arcpy.ExtrudeBetween_3d(lyr, next_lyr, inPoly, layerName)
... View more
12-19-2022
10:02 AM
|
0
|
0
|
1991
|
|
POST
|
Glad you found a solution! I recommend testing your error handling here. If there's an error in your edit session, it may not close properly without a try/except statement or using a with statement.
... View more
12-16-2022
06:33 AM
|
0
|
2
|
4727
|
|
POST
|
I had these same problems. Upgrading to ArcGIS Pro 3.0.3 was the fix for me.
... View more
12-15-2022
10:09 AM
|
0
|
0
|
4757
|
|
POST
|
Our PrintingTools geoprocessing service in ArcGIS Server 10.8.1 is applying some kind of default stretch to raster imagery whith Export Web Map tasks from the print widget in a Web Appbuilder (Developer Edition v2.18) app. The web app displays the aerial from an image service (published from a mosaic dataset) in a basemap gallery widget. The raster imagery is displayed correctly in the web map and app, but the output from the print widget makes the imagery look much darker. This impacts readability with the symbology of other layers. Is there a way to control the raster symbology stretch like what can be done from within ArcGIS Pro and ArcMap?
... View more
12-13-2022
01:13 PM
|
0
|
3
|
4305
|
|
IDEA
|
Another request from 2017 for the same thing. Thanks for posting @feralcatcolonist_old Provide ArcPy functionality to modify all address ... - Esri Community
... View more
12-12-2022
11:16 AM
|
0
|
0
|
1678
|
|
POST
|
Try adding some print statements to help you debug. In your else, print row[3] and row[4] so you can see what values it's actually getting.
... View more
12-09-2022
03:11 PM
|
0
|
1
|
4316
|
|
POST
|
But does the with statement work in both scenarios? with arcpy.da.UpdateCursor(parcels, Pfields, SQL)as uCursor:
... View more
12-08-2022
06:10 AM
|
0
|
0
|
859
|
|
POST
|
Once you have the group object, I think you can use the user_list() method to get a dictionary listing users and owners for the group. esri_owned_groups = gis.groups.search(max_groups=1)
for group in esri_owned_groups:
print(group)
print(group.groupid)
print(group.isFav)
print(group.isInvitationOnly)
print(group.title)
print(group.owner)
print(group.user_list())
... View more
12-07-2022
09:45 AM
|
2
|
1
|
3973
|
|
POST
|
Sorry, I'm really not sure about the correct use of a decorator with Editor. I always use it in a with statement, like cursors.
... View more
12-06-2022
10:37 AM
|
0
|
0
|
2069
|
|
POST
|
If you're editing a versioned feature class in an enterprise geodatabase, you probably need to use the Editor class.
... View more
12-06-2022
07:35 AM
|
0
|
2
|
2083
|
|
BLOG
|
@AnneSanta_Maria1, you can use Richard's example #2 as-is without a field map. The update portion uses an index of the fields (the order) rather than the actual field names. So update the sourceFieldsList and updateFieldsList with your field names, but make sure they are in the same order. The rest of the code should be the same.
... View more
12-05-2022
07:50 AM
|
2
|
0
|
11594
|
|
POST
|
The portalItem id is the item in Portal for ArcGIS that is the routeLayer, which looks as though you can create it from stops. // A minimum of two stops is required for routing.
const stops = [
new Stop({ geometry: { latitude: 32.180763, longitude: 34.929558 } }),
new Stop({ geometry: { latitude: 31.9339, longitude: 34.8878 } })
];
// Create route layer and assign the stops. Only solved routelayers will be rendered.
const routeLayer = new RouteLayer({
stops
});
... View more
12-05-2022
07:38 AM
|
0
|
0
|
2729
|
|
POST
|
Try setIDMessage Customize tool behavior in a Python toolbox—ArcGIS Pro | Documentation
... View more
12-02-2022
03:30 PM
|
0
|
1
|
4313
|
|
POST
|
Try without the ending semicolon in the SQL statement.
... View more
12-02-2022
06:49 AM
|
0
|
1
|
2374
|
|
POST
|
Sorry @JacquelineAlessi, I did not notice you were using the legacy cursor, as @Luke_Pinner pointed out. I updated my code to use the new data access cursor, but the post from Luke is more complete.
... View more
11-30-2022
06:26 AM
|
0
|
0
|
3013
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-23-2025 03:53 PM | |
| 1 | 04-28-2026 07:25 AM | |
| 1 | 03-19-2026 08:59 AM | |
| 1 | 02-12-2026 01:37 PM | |
| 1 | 12-01-2025 06:19 AM |