<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Overlay Route Events - Standalone Python Script with definition queries in ArcGIS Roads and Highways Questions</title>
    <link>https://community.esri.com/t5/arcgis-roads-and-highways-questions/overlay-route-events-standalone-python-script-with/m-p/53321#M6</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nathan. I tried creating a query layer in ArcMap using the script from the link you provided. When I&amp;nbsp; try to input the query layer Road LRS into the Overlay Route Event Tool I get the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unable to get Network properties from the LRS Meta Data table.&lt;BR /&gt;Unable to parse parameters.&lt;BR /&gt;Failed to execute (OverlayRouteEvents).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try to run the Overlay Route Event tool both programmatically and within ArcMap. I also tried using the ArcMap Make Query Layer tool and then putting the output query into the Overlay Route Event Tool but get the same result.&lt;/P&gt;&lt;P&gt;Any idea where the error could be coming from?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2020 18:28:43 GMT</pubDate>
    <dc:creator>CharmaleeSandanayake1</dc:creator>
    <dc:date>2020-09-23T18:28:43Z</dc:date>
    <item>
      <title>Overlay Route Events - Standalone Python Script with definition queries</title>
      <link>https://community.esri.com/t5/arcgis-roads-and-highways-questions/overlay-route-events-standalone-python-script-with/m-p/53319#M4</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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: &lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/10.5/tools/location-referencing-roads-toolbox/overlay-route-events.htm#C_GUID-8B015C4F-71B3-454E-849E-3D11EF2CFBBD" title="https://desktop.arcgis.com/en/arcmap/10.5/tools/location-referencing-roads-toolbox/overlay-route-events.htm#C_GUID-8B015C4F-71B3-454E-849E-3D11EF2CFBBD"&gt;Overlay Route Events—Location Referencing for Roads and Highways | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;(FromDate is null or FromDate&amp;lt;=CURRENT_TIMESTAMP) and (ToDate is null or ToDate&amp;gt;CURRENT_TIMESTAMP)&lt;/P&gt;&lt;P&gt;Would anyone know how to apply the query in the python before running the overlay route events tool?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Charmalee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 13:13:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-roads-and-highways-questions/overlay-route-events-standalone-python-script-with/m-p/53319#M4</guid>
      <dc:creator>CharmaleeSandanayake1</dc:creator>
      <dc:date>2020-09-23T13:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay Route Events - Standalone Python Script with definition queries</title>
      <link>https://community.esri.com/t5/arcgis-roads-and-highways-questions/overlay-route-events-standalone-python-script-with/m-p/53320#M5</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charmalee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're looking to making a selection on your network and/or events that will be utilized in the overlay, I would suggest taking a look at &lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/make-query-layer.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/make-query-layer.htm"&gt;Make Query Layer (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mentioned the definition query for time that we automatically put onto layers (&lt;SPAN style="background-color: #ffffff;"&gt;(FromDate is null or FromDate&amp;lt;=CURRENT_TIMESTAMP) and (ToDate is null or ToDate&amp;gt;CURRENT_TIMESTAMP)&lt;/SPAN&gt;).&amp;nbsp; I would suggest continuing to utilize some sort of time query when you run the Overlay Events tool as the tool is designed to run against a single time range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;P&gt;ArcGIS Roads and Highways team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 15:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-roads-and-highways-questions/overlay-route-events-standalone-python-script-with/m-p/53320#M5</guid>
      <dc:creator>NathanEasley</dc:creator>
      <dc:date>2020-09-23T15:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay Route Events - Standalone Python Script with definition queries</title>
      <link>https://community.esri.com/t5/arcgis-roads-and-highways-questions/overlay-route-events-standalone-python-script-with/m-p/53321#M6</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nathan. I tried creating a query layer in ArcMap using the script from the link you provided. When I&amp;nbsp; try to input the query layer Road LRS into the Overlay Route Event Tool I get the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unable to get Network properties from the LRS Meta Data table.&lt;BR /&gt;Unable to parse parameters.&lt;BR /&gt;Failed to execute (OverlayRouteEvents).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try to run the Overlay Route Event tool both programmatically and within ArcMap. I also tried using the ArcMap Make Query Layer tool and then putting the output query into the Overlay Route Event Tool but get the same result.&lt;/P&gt;&lt;P&gt;Any idea where the error could be coming from?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 18:28:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-roads-and-highways-questions/overlay-route-events-standalone-python-script-with/m-p/53321#M6</guid>
      <dc:creator>CharmaleeSandanayake1</dc:creator>
      <dc:date>2020-09-23T18:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay Route Events - Standalone Python Script with definition queries</title>
      <link>https://community.esri.com/t5/arcgis-roads-and-highways-questions/overlay-route-events-standalone-python-script-with/m-p/53322#M7</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had asked our Esri rep about this&amp;nbsp; previously and she recommended the Make Feature Layer Tool (&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/make-feature-layer.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/make-feature-layer.htm"&gt;Make Feature Layer (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt; ) or saving layer files of the events and then running the Overlay Route Events tool. Just had to reread the email she had sent months ago.&amp;nbsp; So far that seems to be working. Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 19:08:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-roads-and-highways-questions/overlay-route-events-standalone-python-script-with/m-p/53322#M7</guid>
      <dc:creator>CharmaleeSandanayake1</dc:creator>
      <dc:date>2020-09-23T19:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay Route Events - Standalone Python Script with definition queries</title>
      <link>https://community.esri.com/t5/arcgis-roads-and-highways-questions/overlay-route-events-standalone-python-script-with/m-p/53323#M8</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charmalee,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to hear you got the tool working using python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;P&gt;ArcGIS Roads and Highways team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 19:35:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-roads-and-highways-questions/overlay-route-events-standalone-python-script-with/m-p/53323#M8</guid>
      <dc:creator>NathanEasley</dc:creator>
      <dc:date>2020-09-23T19:35:03Z</dc:date>
    </item>
  </channel>
</rss>

