Bug
Bug ID Number | BUG-000173742 |
---|---|
Submitted | January 21, 2025 |
Last Modified | June 19, 2025 |
Applies to | ArcGIS Pro |
Version found | 3.3.2 |
Operating System | Windows OS |
Operating System Version | 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:
Get help from ArcGIS experts
Download the Esri Support App