Bug
| Bug-ID-Nummer | BUG-000173742 |
|---|---|
| Eingereicht | January 21, 2025 |
| Zuletzt geändert | June 19, 2025 |
| Gilt für | ArcGIS Pro |
| Gefunden in Version | 3.3.2 |
| Betriebssystem | Windows OS |
| Betriebssystemversion | 11.0 64 bit |
| Status | As Designed |
If the desired M-values for every vertices in a field is available, use the below Python code:
import arcpy
# set workspace environment
arcpy.env.workspace = r"<the path to the geodatabase>"
# Feature class to update
fc = "BECSM"
# field name that contains values we want to assign to M
field_name = "Measures"
# Use Update cursor to update M-Values
with arcpy.da.UpdateCursor(fc, ["SHAPE@M", field_name]) as cursor:
for row in cursor:
# Get geometry and field value
row[0] = row[1]
# update the row with the new value
cursor.updateRow(row)
Bug-ID: BUG-000173742
Software:
Unterstützung durch ArcGIS-Experten anfordern
Esri Support App herunterladen