preichart

Remeasure routes in field calculator using Python

Discussion created by preichart on Jul 7, 2011
Latest reply on Nov 14, 2011 by JPetrosky
Is it possible to remeasure routes in ArcMap 10 using Python in the field calculator? In 9.3 we used the following vbscript to remeasure routes and it works fine. If I understand correctly, in ArcMap 10, vbscript does not work on geometry any more.

dim pms as imsegmentation
dim pLine as IPolyline
set pLine = [SHAPE]
set pms = [SHAPE]
pms.setandinterpolatemsbetween 0, pLine.length * .0006214
dim pg as igeometry
set pg = pms

__esri_field_calculator_splitter__
pg



Thanks.

Outcomes