I have M-enabled polylines, these lines are calibrated using different calibration points and some even start from zero. I want to drop existing M-values and then want to assign distance as M-value.
I can do this in ArcMap as you can see in the images below:
Dropping existing M-values.
Recalculating using Set as Distance.
I have many such polylines and I am trying to automate it using arcpy but could not find anything related to this.
Note: There is a tool "Create Route", but it requires coordinate_priority which changes the direction of the line. I need to recalibrate line based on distance with direction preserved.