Bogue
| Numéro d’ID de bogue | BUG-000173742 |
|---|---|
| Envoi | January 21, 2025 |
| Dernière modification | June 19, 2025 |
| S’applique à | ArcGIS Pro |
| Version trouvée | 3.3.2 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 11.0 64 bit |
| Statut | 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)
ID de bogue: BUG-000173742
Logiciel:
Obtenir de l’aide auprès des experts ArcGIS
Télécharger l’application Esri Support