<?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 Creating Route Event Layer programmatically in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-route-event-layer-programmatically/m-p/1320925#M10220</link>
    <description>&lt;P&gt;I am looking for a way to programmatically create a route event layer from a feature layer and a standalone table added to a map in Pro. The geoprocessing code below executes without errors but the event layer does not get added to the map.&amp;nbsp;&lt;SPAN&gt;If I use the out-of-the-box "Make Route Event Layer" GP tool, the event layer is created as expected.&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;List&amp;lt;object&amp;gt; argsMakeLayer = new List&amp;lt;object&amp;gt; { streetLayer.Name, "LINK_ID", eventTable.Name, "Link_ID; LINE; FromMeasure; ToMeasure", "Route_Event_Layer", "MapOffset", "NO_ERROR_FIELD", "NO_ANGLE_FIELD", "NORMAL", "ANGLE", "LEFT", "POINT" };&lt;BR /&gt;IGPResult result = await Geoprocessing.ExecuteToolAsync("lr.MakeRouteEventLayer", Geoprocessing.MakeValueArray(argsMakeLayer.ToArray()), null, null, null, GPExecuteToolFlags.None);&lt;/P&gt;&lt;P&gt;Is it possible to make this work using the GP approach above? Alternatively, is there a way to create the event layer without using geoprocessing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Pro 2.9. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2023 21:25:02 GMT</pubDate>
    <dc:creator>azlotin</dc:creator>
    <dc:date>2023-08-21T21:25:02Z</dc:date>
    <item>
      <title>Creating Route Event Layer programmatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-route-event-layer-programmatically/m-p/1320925#M10220</link>
      <description>&lt;P&gt;I am looking for a way to programmatically create a route event layer from a feature layer and a standalone table added to a map in Pro. The geoprocessing code below executes without errors but the event layer does not get added to the map.&amp;nbsp;&lt;SPAN&gt;If I use the out-of-the-box "Make Route Event Layer" GP tool, the event layer is created as expected.&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;List&amp;lt;object&amp;gt; argsMakeLayer = new List&amp;lt;object&amp;gt; { streetLayer.Name, "LINK_ID", eventTable.Name, "Link_ID; LINE; FromMeasure; ToMeasure", "Route_Event_Layer", "MapOffset", "NO_ERROR_FIELD", "NO_ANGLE_FIELD", "NORMAL", "ANGLE", "LEFT", "POINT" };&lt;BR /&gt;IGPResult result = await Geoprocessing.ExecuteToolAsync("lr.MakeRouteEventLayer", Geoprocessing.MakeValueArray(argsMakeLayer.ToArray()), null, null, null, GPExecuteToolFlags.None);&lt;/P&gt;&lt;P&gt;Is it possible to make this work using the GP approach above? Alternatively, is there a way to create the event layer without using geoprocessing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Pro 2.9. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 21:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-route-event-layer-programmatically/m-p/1320925#M10220</guid>
      <dc:creator>azlotin</dc:creator>
      <dc:date>2023-08-21T21:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Route Event Layer programmatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-route-event-layer-programmatically/m-p/1321006#M10221</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to change&amp;nbsp;&lt;SPAN&gt;GPExecuteToolFlags.None to&amp;nbsp;GPExecuteToolFlags.&lt;/SPAN&gt;AddOutputsToMap in&amp;nbsp;&lt;SPAN&gt;Geoprocessing.ExecuteToolAsync.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic9375.html" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic9375.html&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 05:25:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-route-event-layer-programmatically/m-p/1321006#M10221</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-08-22T05:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Route Event Layer programmatically</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-route-event-layer-programmatically/m-p/1321105#M10228</link>
      <description>&lt;P&gt;Thanks for the help, that was the problem!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 12:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-route-event-layer-programmatically/m-p/1321105#M10228</guid>
      <dc:creator>azlotin</dc:creator>
      <dc:date>2023-08-22T12:36:47Z</dc:date>
    </item>
  </channel>
</rss>

