<?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: How to convert Polygon to Polyline and Push geometry using Arcade? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-convert-polygon-to-polyline-and-push/m-p/1611333#M7497</link>
    <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/454087"&gt;@Jake_S&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;This is what is expected, a single output:)&lt;/P&gt;</description>
    <pubDate>Sat, 03 May 2025 02:38:31 GMT</pubDate>
    <dc:creator>Yogesh_Chavan</dc:creator>
    <dc:date>2025-05-03T02:38:31Z</dc:date>
    <item>
      <title>How to convert Polygon to Polyline and Push geometry using Arcade?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-convert-polygon-to-polyline-and-push/m-p/1611137#M7495</link>
      <description>&lt;P&gt;On INSERT of a new polygon feature in Polygon FC, the arcade attribute rule should push that to the Polyline FC?&lt;/P&gt;&lt;P&gt;How can we achieve this using Arcade Attribute Rules in ArcGIS Pro?&lt;/P&gt;&lt;P&gt;I am working on a rule to consider rings to polyline, but need to know how to push the geometry, and if I am on right track?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var geom = Geometry($feature)
var rings = geom.rings
var spatialRef = geom.spatialReference
var polyline = Polyline({
'paths':rings,
'spatialReference':spatialref
})
return polyline&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-flex-questions/convert-a-polygon-to-polyline-for-cut/m-p/607961#M13537" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-flex-questions/convert-a-polygon-to-polyline-for-cut/m-p/607961#M13537&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 15:04:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-convert-polygon-to-polyline-and-push/m-p/1611137#M7495</guid>
      <dc:creator>Yogesh_Chavan</dc:creator>
      <dc:date>2025-05-02T15:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert Polygon to Polyline and Push geometry using Arcade?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-convert-polygon-to-polyline-and-push/m-p/1611164#M7496</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/729377"&gt;@Yogesh_Chavan&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What you need is &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm" target="_self"&gt;Attribute rule dictionary keywords&lt;/A&gt;&amp;nbsp;, specifically the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm#ESRI_SECTION1_98D8C1A03B0D4BAB810DCC76DBA88F2C" target="_self"&gt;edit&lt;/A&gt; with adds.&lt;BR /&gt;&lt;BR /&gt;Now if you are looking for a single line to represent you poly gone the code below should work; just replace your feature class name in line 11.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you need a line for each of your polygons side, i.e. 4 sided polygon nets 4 lines, that's a bit more work.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var geom = Geometry($feature)
var rings = geom.rings
var spatialRef = geom.spatialReference
var polyline = Polyline({
'paths':rings,
'spatialReference':spatialref
})

return {
    'edit': [{
        'className': 'Line',
        'adds': [{ 
            'geometry': polyline,
                }]
        }]
    }
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 16:26:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-convert-polygon-to-polyline-and-push/m-p/1611164#M7496</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2025-05-02T16:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert Polygon to Polyline and Push geometry using Arcade?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-convert-polygon-to-polyline-and-push/m-p/1611333#M7497</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/454087"&gt;@Jake_S&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;This is what is expected, a single output:)&lt;/P&gt;</description>
      <pubDate>Sat, 03 May 2025 02:38:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-convert-polygon-to-polyline-and-push/m-p/1611333#M7497</guid>
      <dc:creator>Yogesh_Chavan</dc:creator>
      <dc:date>2025-05-03T02:38:31Z</dc:date>
    </item>
  </channel>
</rss>

