Hi Melinda,
I did a bit more searching and changed the script as follows:
>>> import arcpy
# import stop feature class and create geometry objects
>>> fcStop = 'C:/shapefile/bus_stops.shp'
>>> cursorStop = arcpy.da.SearchCursor(fcStop,['SHAPE@'])
>>> stopGeom = cursorStop.next()
# import route feature class and create geometry objects
>>> fcRoute = 'C:/shapefile/routes.shp'
>>> cursorRoute = arcpy.da.SearchCursor(fcRoute,['SHAPE@'])
>>> routeGeom = cursorRoute.next()
#measure distance on route
>>> dist_along_route = routeGeom.measureOnLine(stopGeom,FALSE)
This returned the result:
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
AttributeError: 'tuple' object has no attribute 'measureOnLine'
Does that mean the script measureOnLine not exist? BTW, I use gis 10.2.1 and pythonwin 2.7.5
Many thanks,
Sui