<?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: Calculate Multiple Fields from multiple Intersection poly layers using Attribute Rules in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-multiple-fields-from-multiple/m-p/1205718#M58991</link>
    <description>&lt;P&gt;Also, a lot of the slowness of Attribute Rules comes from the loading of FeatureSets. To make it quicker:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Load only the fields you need.&lt;/LI&gt;&lt;LI&gt;Don't load the geometries if you don't want to work with them. You can do an Intersects() without loading the geometry!&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Wed, 24 Aug 2022 08:01:28 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2022-08-24T08:01:28Z</dc:date>
    <item>
      <title>Calculate Multiple Fields from multiple Intersection poly layers using Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-multiple-fields-from-multiple/m-p/1205526#M58964</link>
      <description>&lt;P&gt;I am setting up some attribute rules to populate fields in my NG911 address database.&amp;nbsp; A Lot of these fields are populated off of interests of 3 different polygon layers. I have them all set up as multiple rules now and they are working, but editing is very slow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I can combine these rules into one, just not sure how to do it when I am intersecting multiple layers to populate different fields.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some one point me in the right direction or have a sample for me?&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 19:13:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-multiple-fields-from-multiple/m-p/1205526#M58964</guid>
      <dc:creator>JustinNettleton1</dc:creator>
      <dc:date>2022-08-23T19:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Multiple Fields from multiple Intersection poly layers using Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-multiple-fields-from-multiple/m-p/1205715#M58990</link>
      <description>&lt;P&gt;Basically, instead of choosing a field for the Attribute Rule and returning a value, you leave the field empty and return a dictionary. The possible keys of this dictionary are described here:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var attribute_1 = null
var attribute_2 = null
var attribute_3 = "Nothing here"

var layer_1 = FeatureSetByName($datastore, "FC_1")
var id = $feature.SomeID
var polygon_1 = First(Filter(layer_1, "SomeID = &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/354972"&gt;@ID&lt;/a&gt;"))
if(polygon_1 != null) { attribute_1 = polygon_1.Attribute }

var layer_2 = FeatureSetByRelationshipName($feature, "Relationship")
var polygon_2 = First(layer_2)
if(polygon_2 != null) { attribute_2 = polygon_2.Attribute }

var layer_3 = FeatureSetByName($datastore, "FC_3")
var polygon_3 = First(Intersects($feature, layer_3))
if(polygon_3 != null) { attribute_3 = polygon_3.Attribute }

return {
    result: {
        attributes: {
            Attribute1: attribute_1,
            Attribute2: attribute_2,
            Attribute3: attribute_3,
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 07:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-multiple-fields-from-multiple/m-p/1205715#M58990</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-08-24T07:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Multiple Fields from multiple Intersection poly layers using Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-multiple-fields-from-multiple/m-p/1205718#M58991</link>
      <description>&lt;P&gt;Also, a lot of the slowness of Attribute Rules comes from the loading of FeatureSets. To make it quicker:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Load only the fields you need.&lt;/LI&gt;&lt;LI&gt;Don't load the geometries if you don't want to work with them. You can do an Intersects() without loading the geometry!&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 24 Aug 2022 08:01:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-multiple-fields-from-multiple/m-p/1205718#M58991</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-08-24T08:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Multiple Fields from multiple Intersection poly layers using Attribute Rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/calculate-multiple-fields-from-multiple/m-p/1206466#M59095</link>
      <description>&lt;P&gt;Thank you for these solutions. They have helped the performance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 18:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/calculate-multiple-fields-from-multiple/m-p/1206466#M59095</guid>
      <dc:creator>JustinNettleton1</dc:creator>
      <dc:date>2022-08-25T18:15:10Z</dc:date>
    </item>
  </channel>
</rss>

