<?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: Editing features on another class with attribute rules - Points in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/editing-features-on-another-class-with-attribute/m-p/1168667#M400</link>
    <description>&lt;P&gt;Huh, weird, these snippets worked for me. But my test feature classes are in a file gdb, maybe that makes a difference, who knows...&lt;/P&gt;&lt;P&gt;Glad you got it to work with the buffer!&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 08:49:01 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2022-04-28T08:49:01Z</dc:date>
    <item>
      <title>Editing features on another class with attribute rules - Points</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/editing-features-on-another-class-with-attribute/m-p/1168520#M396</link>
      <description>&lt;P&gt;Hey folks,&lt;/P&gt;&lt;P&gt;Stumbled upon this post, &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules/" target="_self"&gt;Advanced Attribute Rules - Editing features on another class with attribute rules&lt;/A&gt;&amp;nbsp;where inserting a point created a buffer polygon feature class. I wanted to use this when a user creates an annotation feature a similar rule would create a point feature class. When I use almost identical code just pointed to a point feature class.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var featureGeo = Geometry($feature);
return {
      "result": $feature.OBJECT__ID,
      "edit": [  
        {  
            "className" : "LocalPoints", 
            "adds" : [   
                   {
                         "attributes":  
                          {
                                "TextString": $feature.TextString
                            }, 
                         "geometry": featureGeo
                   }
          ]
         }  
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following error..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JS_Esri_0-1651089663256.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39992i00A4899326EDB837/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JS_Esri_0-1651089663256.png" alt="JS_Esri_0-1651089663256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Am I using the wrong function to return the annotation feature geometry? Or is it my Pro Version? 2.6.6&lt;/P&gt;&lt;P&gt;Any help for this noob is appreciated!&lt;/P&gt;&lt;P&gt;~j&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 20:43:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/editing-features-on-another-class-with-attribute/m-p/1168520#M396</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2022-04-27T20:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Editing features on another class with attribute rules - Points</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/editing-features-on-another-class-with-attribute/m-p/1168631#M397</link>
      <description>&lt;P&gt;Annotation features seem to be treated as polygons. So when you try to just copy the geometry to a point fc, it throws an error.&lt;/P&gt;&lt;P&gt;Depending on where you want the point to show up, you have a few options:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Centroid(featureGeo)&lt;/STRONG&gt;, this will place the point in the center of the annotation&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;featureGeo.rings[0][1]&lt;/STRONG&gt;, this will place the point at the bottom left corner of the annotation&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;featureGeo.ring[0][X]&lt;/STRONG&gt;, where X is 0, 2 or 3, this will place the point at one of the other corners&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 28 Apr 2022 05:51:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/editing-features-on-another-class-with-attribute/m-p/1168631#M397</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-04-28T05:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Editing features on another class with attribute rules - Points</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/editing-features-on-another-class-with-attribute/m-p/1168663#M398</link>
      <description>&lt;P&gt;Johannes,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Always looking out for me!&lt;/P&gt;&lt;P&gt;I did try Centroid() prior to posting, I get the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JS_Esri_0-1651134408239.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40028iAC6192B611BBCFAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JS_Esri_0-1651134408239.png" alt="JS_Esri_0-1651134408239.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using&amp;nbsp;featureGeo.rings[0][1] returns this error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JS_Esri_2-1651134506214.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40030iD412D9AE21C4D6E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JS_Esri_2-1651134506214.png" alt="JS_Esri_2-1651134506214.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After these attempts, your statement "&lt;SPAN&gt;Annotation features seem to be treated as polygons." got me thinking so when I did the following, I got the desired output!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var buff = Buffer($feature,1)
var featureGeo = Centroid(buff)&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Creating a small buffer then getting the centroid did the trick!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help. As always its a pleasure!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 08:33:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/editing-features-on-another-class-with-attribute/m-p/1168663#M398</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2022-04-28T08:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Editing features on another class with attribute rules - Points</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/editing-features-on-another-class-with-attribute/m-p/1168665#M399</link>
      <description>&lt;P&gt;This also worked......&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var featureGeo = Geometry($feature);
var featureGeo = Centroid(featureGeo)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Apr 2022 08:41:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/editing-features-on-another-class-with-attribute/m-p/1168665#M399</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2022-04-28T08:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Editing features on another class with attribute rules - Points</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/editing-features-on-another-class-with-attribute/m-p/1168667#M400</link>
      <description>&lt;P&gt;Huh, weird, these snippets worked for me. But my test feature classes are in a file gdb, maybe that makes a difference, who knows...&lt;/P&gt;&lt;P&gt;Glad you got it to work with the buffer!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 08:49:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/editing-features-on-another-class-with-attribute/m-p/1168667#M400</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-04-28T08:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Editing features on another class with attribute rules - Points</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/editing-features-on-another-class-with-attribute/m-p/1168675#M401</link>
      <description>&lt;P&gt;Yeah, not sure. Enjoy the day!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 10:14:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/editing-features-on-another-class-with-attribute/m-p/1168675#M401</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2022-04-28T10:14:11Z</dc:date>
    </item>
  </channel>
</rss>

