<?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: Fill polyline ID field from ID field of a different point layer in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/fill-polyline-id-field-from-id-field-of-a/m-p/1250540#M64531</link>
    <description>&lt;P&gt;Arcade is your friend here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// extract the line's start and end points
var start_point = Geometry($feature).paths[0][0]
var end_point = Geometry($feature).paths[-1][-1]

// load the point fc
var point_fc = FeaturesetByName($datastore, "TestPoints", ["TextField"], false)

// get the intersecting points' names
var i_start = First(Intersects(start_point, point_fc))
var i_end = First(Intersects(end_point, point_fc))
var names = [
    IIf(i_start == null, "", i_start.TextField),
    IIf(i_end == null, "", i_end.TextField),
    ]

// concatenate and return
return Concatenate(names, "")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change the names of the point fc and the name field in lines 6, 12, and 13.&lt;/P&gt;&lt;P&gt;You can use this expression in the field calculator (switch to Arcade) or in an &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/an-overview-of-attribute-rules.htm" target="_blank" rel="noopener"&gt;Attribute Rule&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1674503515532.png" style="width: 627px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61002iDA3BB821BF3AE766/image-dimensions/627x217?v=v2" width="627" height="217" role="button" title="JohannesLindner_0-1674503515532.png" alt="JohannesLindner_0-1674503515532.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 19:52:05 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2023-01-23T19:52:05Z</dc:date>
    <item>
      <title>Fill polyline ID field from ID field of a different point layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/fill-polyline-id-field-from-id-field-of-a/m-p/1250495#M64528</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I have a network of polyline features that connect point features. Point features are labelled A1, A2 etc. Lines are named based on the 2 point features they connect: ID = A1A2. Is there a easy way to have the attribute ID of the polyline generate based on the 2 points it is snapped to?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 18:57:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/fill-polyline-id-field-from-id-field-of-a/m-p/1250495#M64528</guid>
      <dc:creator>ash-ym24</dc:creator>
      <dc:date>2023-01-23T18:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fill polyline ID field from ID field of a different point layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/fill-polyline-id-field-from-id-field-of-a/m-p/1250498#M64529</link>
      <description>&lt;P&gt;Hey, welcome to the Community!&lt;/P&gt;&lt;P&gt;What product are you working with? ArcGIS Pro?&lt;/P&gt;&lt;P&gt;Is this a one-time operation or do you need that to calculate automatically?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 19:03:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/fill-polyline-id-field-from-id-field-of-a/m-p/1250498#M64529</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-01-23T19:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fill polyline ID field from ID field of a different point layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/fill-polyline-id-field-from-id-field-of-a/m-p/1250520#M64530</link>
      <description>&lt;P&gt;Working with ArcGIS Pro. It is a repetitive&amp;nbsp; operation that I have been doing manually, and would like to be able to save a calculate field or other script to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 19:29:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/fill-polyline-id-field-from-id-field-of-a/m-p/1250520#M64530</guid>
      <dc:creator>ash-ym24</dc:creator>
      <dc:date>2023-01-23T19:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Fill polyline ID field from ID field of a different point layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/fill-polyline-id-field-from-id-field-of-a/m-p/1250540#M64531</link>
      <description>&lt;P&gt;Arcade is your friend here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// extract the line's start and end points
var start_point = Geometry($feature).paths[0][0]
var end_point = Geometry($feature).paths[-1][-1]

// load the point fc
var point_fc = FeaturesetByName($datastore, "TestPoints", ["TextField"], false)

// get the intersecting points' names
var i_start = First(Intersects(start_point, point_fc))
var i_end = First(Intersects(end_point, point_fc))
var names = [
    IIf(i_start == null, "", i_start.TextField),
    IIf(i_end == null, "", i_end.TextField),
    ]

// concatenate and return
return Concatenate(names, "")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change the names of the point fc and the name field in lines 6, 12, and 13.&lt;/P&gt;&lt;P&gt;You can use this expression in the field calculator (switch to Arcade) or in an &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/an-overview-of-attribute-rules.htm" target="_blank" rel="noopener"&gt;Attribute Rule&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1674503515532.png" style="width: 627px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/61002iDA3BB821BF3AE766/image-dimensions/627x217?v=v2" width="627" height="217" role="button" title="JohannesLindner_0-1674503515532.png" alt="JohannesLindner_0-1674503515532.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 19:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/fill-polyline-id-field-from-id-field-of-a/m-p/1250540#M64531</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-01-23T19:52:05Z</dc:date>
    </item>
  </channel>
</rss>

