<?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: Attribute Assistant: Copy parcel number to address point when new address point created? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-copy-parcel-number-to-address/m-p/1212936#M59872</link>
    <description>&lt;P&gt;Thank you for the quick response! I'm pretty green when it comes to Arcade, below are the features and fields I will be using. Where in your code do I place these in the variables?&lt;/P&gt;&lt;P&gt;$feature.SurveyParcel&lt;/P&gt;&lt;P&gt;&amp;nbsp;and the parcel ID field is called&amp;nbsp;&lt;EM&gt;ParcelID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$feature.SiteAddress&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;and the parcel ID field is called BaseParcel&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2022 14:25:28 GMT</pubDate>
    <dc:creator>avonmoos</dc:creator>
    <dc:date>2022-09-15T14:25:28Z</dc:date>
    <item>
      <title>Attribute Rules: Copy parcel number to address point when new address point created?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-copy-parcel-number-to-address/m-p/1212749#M59850</link>
      <description>&lt;P&gt;I need assistance building an expression which would copy the parcel number attribute from our parcel layer to the parcel attribute in our address point layer when creating a new one.&amp;nbsp;&lt;SPAN&gt;This would be based on the parcel that the address point being created sits on.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 17:30:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-copy-parcel-number-to-address/m-p/1212749#M59850</guid>
      <dc:creator>avonmoos</dc:creator>
      <dc:date>2022-09-15T17:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: Copy parcel number to address point when new address point created?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-copy-parcel-number-to-address/m-p/1212785#M59853</link>
      <description>&lt;P&gt;As you're asking this in the ArcGIS Pro community, I'm assuming you mean Attribute Rules, not Assistant.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/an-overview-of-attribute-rules.htm" target="_blank"&gt;Introduction to attribute rules—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you indeed mean Assistant, I'll move your question to the ArcMap community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Attribute Rule on the Address Points
// triggers: Insert

// load the parcels
var parcels = FeatureSetByName($datastore, "Databasename.Dataowner.Parcels", ["ParcelNumber"], false)

// intersect with the new point
var intersecting_parcel = First(Intersects(parcels, $feature))

// return null if no parcel was intersected
if(intersecting_parcel == null) {
    return null
}

// else return that parcel's number
return intersecting_parcel.ParcelNumber&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 Sep 2022 06:08:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-copy-parcel-number-to-address/m-p/1212785#M59853</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-09-15T06:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: Copy parcel number to address point when new address point created?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-copy-parcel-number-to-address/m-p/1212936#M59872</link>
      <description>&lt;P&gt;Thank you for the quick response! I'm pretty green when it comes to Arcade, below are the features and fields I will be using. Where in your code do I place these in the variables?&lt;/P&gt;&lt;P&gt;$feature.SurveyParcel&lt;/P&gt;&lt;P&gt;&amp;nbsp;and the parcel ID field is called&amp;nbsp;&lt;EM&gt;ParcelID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$feature.SiteAddress&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;and the parcel ID field is called BaseParcel&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 14:25:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-copy-parcel-number-to-address/m-p/1212936#M59872</guid>
      <dc:creator>avonmoos</dc:creator>
      <dc:date>2022-09-15T14:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: Copy parcel number to address point when new address point created?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-copy-parcel-number-to-address/m-p/1213354#M59935</link>
      <description>&lt;P&gt;Create a Calculation Attribute Rule for your point feature class (SiteAddress).&lt;/P&gt;&lt;P&gt;As field for the rule, choose "BaseParcel"&lt;/P&gt;&lt;P&gt;As triggers, choose "Insert".&lt;/P&gt;&lt;P&gt;As expression, use this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var parcels = FeatureSetByName($datastore, "SurveyParcel", ["ParcelID"], false)
var intersecting_parcel = First(Intersects(parcels, $feature))
if(intersecting_parcel == null) {
    return null
}
return intersecting_parcel.ParcelID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should work if you're working in a file geodatabase. If you work in an Enterprise geodatabase, you have to replace "SurveyParcel" in line 1 with the complete name of the feature class ("Databasename.Dataowner.SurveyParcel").&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:04:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-copy-parcel-number-to-address/m-p/1213354#M59935</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-09-16T12:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: Copy parcel number to address point when new address point created?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-copy-parcel-number-to-address/m-p/1213824#M59972</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 14:44:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/attribute-rules-copy-parcel-number-to-address/m-p/1213824#M59972</guid>
      <dc:creator>avonmoos</dc:creator>
      <dc:date>2022-09-19T14:44:45Z</dc:date>
    </item>
  </channel>
</rss>

