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 . When you pull the linear referencing toolbox into python, there is only one space for this parameter, although I need to define several . 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")