Is This Content Helpful?
We're glad to know this article was helpful.
When converting Intergraph MGE data to polyline shapefile and then to a polylineM shapefile, in order to do dynamic segmentation, all the calculated measurements were lost in the resulting polylineM shapefile. All the measurements had to be recalculated for the dynamic segmentation to work.
When ArcView converts polyline shapefiles to polylineM shapefiles, the measurements are not retained.
There are two ways to resolve this:
· Use the sample script that converts polyline shapefiles to polylineM shapefiles. You will need to add a line to calculate measurements.
1. Open the example on the Help topic 'PolylineM (class).'
2. Copy the script into a new script window.
3. Find the following code segments:
For each rec in theFtab
theShape = theFtab.ReturnValue(theShapeField,rec)
theShapeM = theShape.AsPolyLineM
'Get the attributes back ...
theNewRecnum = theNewFtab.AddRecord
' Calculate the measures for each feature in map units
In order to edit a polylineM file, you need to place a customized default.apr in the working directory to allow you to make edits to this feature type.
or (clsName = "PolylineM")