<?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: Need help converting ArcMap attribute assistant rule to ArcGIS Pro Attribute Rules in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-converting-arcmap-attribute-assistant/m-p/1255070#M65124</link>
    <description>&lt;P&gt;Much obliged, Johannes.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2023 22:49:11 GMT</pubDate>
    <dc:creator>Keith_McKinnon</dc:creator>
    <dc:date>2023-02-03T22:49:11Z</dc:date>
    <item>
      <title>Need help converting ArcMap attribute assistant rule to ArcGIS Pro Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-converting-arcmap-attribute-assistant/m-p/1254671#M65058</link>
      <description>&lt;P&gt;I have two attribute assistant rules that extract a unique ID from a point feature class that intersects with either the starting point (SP) or end point (EP) of a line and fill that value into a field in the line feature class.&amp;nbsp; I am not able to find any documentation about an Attribute Rule in ArcGIS Pro that replicates this functionality.&amp;nbsp; Any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Attribute assistant rules:&lt;/P&gt;&lt;P&gt;&lt;A href="https://solutions.arcgis.com/shared/help/attribute-assistant/documentation/methods-intersecting-features/#intersecting-feature" target="_blank"&gt;https://solutions.arcgis.com/shared/help/attribute-assistant/documentation/methods-intersecting-features/#intersecting-feature&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;wwManhole,wwCleanOut,wwNetworkStructure,wwValve|uniqueid|SP|False&lt;/P&gt;&lt;P&gt;wwManhole,wwCleanOut,wwNetworkStructure,wwValve|uniqueid|EP|False&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 23:05:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-converting-arcmap-attribute-assistant/m-p/1254671#M65058</guid>
      <dc:creator>Keith_McKinnon</dc:creator>
      <dc:date>2023-02-02T23:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help converting ArcMap attribute assistant rule to ArcGIS Pro Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-converting-arcmap-attribute-assistant/m-p/1254737#M65074</link>
      <description>&lt;P&gt;Can points intersect the line only at the end vertices or anywhere else, too?&lt;/P&gt;&lt;P&gt;If both start and end vertex intersect a point, which point's value do you want to return?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 06:01:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-converting-arcmap-attribute-assistant/m-p/1254737#M65074</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-02-03T06:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need help converting ArcMap attribute assistant rule to ArcGIS Pro Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-converting-arcmap-attribute-assistant/m-p/1254868#M65094</link>
      <description>&lt;P&gt;Points will intersect at both ends.&amp;nbsp; One rule should grab the point at the starting point.&amp;nbsp; Then other rule should grab the end point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We want to grab data from [uniqueID] of the point and populate [upstreammanhole] (starting vertex) and [downstreammanhole] (end vertex) in the line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 15:39:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-converting-arcmap-attribute-assistant/m-p/1254868#M65094</guid>
      <dc:creator>Keith_McKinnon</dc:creator>
      <dc:date>2023-02-03T15:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help converting ArcMap attribute assistant rule to ArcGIS Pro Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-converting-arcmap-attribute-assistant/m-p/1255066#M65123</link>
      <description>&lt;P&gt;OK.&lt;/P&gt;&lt;P&gt;For the start point:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Calculation Attribute Rule on the line fc
// field: upstreammanhole
// triggers: insert(, update)

// load the manholes
var manholes = FeaturesetByName($datastore, "Database.DataOwner.Manholes", ["uniqueID"], false)

// get the line's start point
var p = Geometry($feature).paths[0][0]

// find the intersecting manhole
var manhole = First(Intersects(p, manholes))

// return a default value if no manhole intersects, else return the manhole's uniqueID
return IIf(manhole == null, null, manhole.uniqueID)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the end point, copy the rule and replace line 9:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var p = Geometry($feature).paths[-1][-1]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also do both points in one rule. To do that, leave the field parameter of the Attribute RUle empty.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Calculation Attribute Rule on the line fc
// field: empty!
// triggers: insert(, update)

// load the manholes
var manholes = FeaturesetByName($datastore, "Database.DataOwner.Manholes", ["uniqueID"], false)

// get the line's start and end points
var start = Geometry($feature).paths[0][0]
var end = Geometry($feature).paths[-1][-1]

// find the intersecting manholes
var start_manhole = First(Intersects(start, manholes))
var end_manhole = First(Intersects(end, manholes))

// instead of returning a value, return a dictionary
return {
    result: {
        attributes: {
            upstreammanhole: IIf(start_manhole == null, null, start_manhole.uniqueID),
            downstreammanhole: IIf(end_manhole == null, null, end_manhole.uniqueID),
            }
        }
    }&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 Feb 2023 22:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-converting-arcmap-attribute-assistant/m-p/1255066#M65123</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-02-03T22:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help converting ArcMap attribute assistant rule to ArcGIS Pro Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/need-help-converting-arcmap-attribute-assistant/m-p/1255070#M65124</link>
      <description>&lt;P&gt;Much obliged, Johannes.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 22:49:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/need-help-converting-arcmap-attribute-assistant/m-p/1255070#M65124</guid>
      <dc:creator>Keith_McKinnon</dc:creator>
      <dc:date>2023-02-03T22:49:11Z</dc:date>
    </item>
  </channel>
</rss>

