I am attempting to write a python script to utilize the Create routes, Locate features along route, and Make route event layer tools from the Linear Referencing tool box. The ultimate goal is to write this into a python toolbox as a custom tool.

I am having an issue with defining the "out_event_properties" parameter on both the locate features and make event tools. As per the Esri documentation for these tools, the data type of this parameter is a "Route Measure Event Property" and I am not sure how to define this parameter.

It is a single parameter that defines up to four subparameters screenshot from Esri documentation. When you pull the linear referencing toolbox into python, there is only one space for this parameter, although I need to define several screenshot from VSCode. Also note that it is called out_event_properties in the locate features tool and in_event_properties in the event creation tool.

Here is a snip of some of my code:

route = arcpy.lr.CreateRoutes(input_line,route_ID_field,"route","LENGTH")

table = arcpy.lr.LocateFeaturesAlongRoutes(input_points,route,route_ID_field,radius,"out_table","RID")

SP_Out = arcpy.MakeRouteEventLayer_lr(route,route_ID_field,table,route_ID_field,"station_points")

1 Answer 1


A simple solution is to run the tool from toolbox in ArcGIS Pro on some sample data then go to history and right click on the run tool and choose copy python command and paste that into your IDE, you will see exactly what it has placed there, my guess a list.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.