My org started using Roads and Highways this year and would like to create a standalone python script to run the overlay route events tool. We were able to create a script based on the code here: Overlay Route Events—Location Referencing for Roads and Highways | ArcGIS Desktop
However, we would like both the LRSN and event layers to have definition queries set on them so that only current roads are output. When I bring the LRSN and event layers to ArcMap, they are automatically queried as follows:
(FromDate is null or FromDate<=CURRENT_TIMESTAMP) and (ToDate is null or ToDate>CURRENT_TIMESTAMP)
Would anyone know how to apply the query in the python before running the overlay route events tool?
Thanks,
Charmalee