<?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>idea Make a labelPoint function available in Arcade for attribute rules in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idi-p/1229648</link>
    <description>&lt;P&gt;Centroid can be used to create a unique ID, but you run into issues with the point potentially being placed outside a polygon if it has an unusual shape, hole, or is a multi-part polygon. The labelPoint property for the Geometry() function in arcpy can be used to solve this issue, but a labelPoint function is not available for Arcade. I would like a labelPoint function for Arcade to help calculate unique IDs using attribute rules.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dale Jackan&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 19:48:05 GMT</pubDate>
    <dc:creator>DaleJackan_work</dc:creator>
    <dc:date>2022-11-08T19:48:05Z</dc:date>
    <item>
      <title>Make a labelPoint function available in Arcade for attribute rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idi-p/1229648</link>
      <description>&lt;P&gt;Centroid can be used to create a unique ID, but you run into issues with the point potentially being placed outside a polygon if it has an unusual shape, hole, or is a multi-part polygon. The labelPoint property for the Geometry() function in arcpy can be used to solve this issue, but a labelPoint function is not available for Arcade. I would like a labelPoint function for Arcade to help calculate unique IDs using attribute rules.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dale Jackan&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 19:48:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idi-p/1229648</guid>
      <dc:creator>DaleJackan_work</dc:creator>
      <dc:date>2022-11-08T19:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Make a labelPoint function available in Arcade for attribute rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idc-p/1229822#M22064</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm all for new functionality in Arcade, but I'm not too sure about your use case.&lt;/P&gt;&lt;P&gt;Yes, you can calculate a unique ID from Centroid() or a theoretical LabelPoint() (using the coordinates, I assume?) but the standard ways to do this are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Use a database sequence&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-database-sequence.htm" target="_blank" rel="noopener"&gt;Create a database sequence&lt;/A&gt; and use an Attribute Rule like this on an integer field:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Attribute Rule on KeyField
// Triggers: Insert, Update

if(IsEmpty($feature.KeyField)) {
    return NextSequenceValue("SequenceName")
}
return $feature.KeyField&lt;/LI-CODE&gt;&lt;P&gt;Or you can use it on a text field and combine the NextSequenceValue() with some string parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Use a Globally Unique ID&lt;/U&gt;&lt;/P&gt;&lt;P&gt;You can also create a GUID field in your table and use an expression like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Attribute Rule on KeyField
// Triggers: Insert, Update

if(IsEmpty($feature.KeyField)) {
    return Guid()
}
return $feature.KeyField&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming you use the coordinates of the polygon's centroid to calculate the ID, be aware that that value is not unique. If you copy a feature, the copy will have the same ID as the original!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 06:18:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idc-p/1229822#M22064</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-11-09T06:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Make a labelPoint function available in Arcade for attribute rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idc-p/1229989#M22067</link>
      <description>&lt;P&gt;While it is true there are other methods for creating unique IDs I should have explained that this is for parcels. We would not be changing our entire database over to global IDs given the method is already in use under arcmap and in our existing records. I know this might seem niche to my organization, but the method is a standard method for property mappers. As for the IDs not being unique, parcels follow the rule that their polygons must never overlap. That said I am sure there are use cases beyond unique IDs in which one would want points only from within a polygon as can be seen by the use cases when searching arcpy.Geometry() and labelPoint, which are only available in python and thus not for use in attribute rules.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 15:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idc-p/1229989#M22067</guid>
      <dc:creator>DaleJackan_work</dc:creator>
      <dc:date>2022-11-09T15:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Make a labelPoint function available in Arcade for attribute rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idc-p/1230158#M22075</link>
      <description>&lt;P&gt;Alright, fair points.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 19:35:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idc-p/1230158#M22075</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-11-09T19:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Make a labelPoint function available in Arcade for attribute rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idc-p/1231266#M22126</link>
      <description>&lt;P&gt;I'm with Dale on this, using centroid XY to create an ID. It is something I do when extracting nodes from a network as not only is it an ID it's also its location and you can remove duplicates by passing into sets for example. You can apply same logic to polygons and polylines. But always good to see other approaches.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 15:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idc-p/1231266#M22126</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2022-11-14T15:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Make a labelPoint function available in Arcade for attribute rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idc-p/1624025#M35165</link>
      <description>&lt;P&gt;Now available starting with Arcade 1.29, ArcPro 3.5 etc.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DaleJackan_work_0-1750102416994.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134451i15AD239EFEB290A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DaleJackan_work_0-1750102416994.png" alt="DaleJackan_work_0-1750102416994.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DaleJackan_work_1-1750102478209.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134452i66219B313EB79D29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DaleJackan_work_1-1750102478209.png" alt="DaleJackan_work_1-1750102478209.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 19:35:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idc-p/1624025#M35165</guid>
      <dc:creator>DaleJackan_work</dc:creator>
      <dc:date>2025-06-16T19:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Make a labelPoint function available in Arcade for attribute rules</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idc-p/1636557#M35670</link>
      <description>&lt;P&gt;Thanks for posting the update!&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/577782"&gt;@DaleJackan_work&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 19:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idc-p/1636557#M35670</guid>
      <dc:creator>AbigailSmith18</dc:creator>
      <dc:date>2025-07-25T19:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Make a labelPoint function available in Arcade for attribute rules - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idc-p/1638424#M35705</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/577782"&gt;@DaleJackan_work&lt;/a&gt;! I'm closing this Idea as Implemented since this is now available with Arcade 1.29 as noted in your comment. Thanks!&lt;/P&gt;&lt;P&gt;Relevant documentation for reference:&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/guide/release-notes/#version-129" target="_blank"&gt;https://developers.arcgis.com/arcade/guide/release-notes/#version-129&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 16:39:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/make-a-labelpoint-function-available-in-arcade-for/idc-p/1638424#M35705</guid>
      <dc:creator>ValeriaChavez</dc:creator>
      <dc:date>2025-08-01T16:39:48Z</dc:date>
    </item>
  </channel>
</rss>

