<?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 Adjust Arcade to calculate field in Pro in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/adjust-arcade-to-calculate-field-in-pro/m-p/1382301#M78762</link>
    <description>&lt;P&gt;I have an Arcade expression in a web map to give a total length of lines with a matching ID attribute.&amp;nbsp; I want to modify this Arcade expression to work in a Field Calculation to take the calculated length and write it to a new attribute.&amp;nbsp; I am having trouble converting it.&amp;nbsp; I assume I need an array or FeatureSet, but I am unsure of the correct syntax. If possible to have the FSRound portion below use a stored length vs geodetic length that would be great.&lt;/P&gt;&lt;P&gt;This is for gravity mains that have various segments between manholes and our engineers want to see the total length between manholes.&lt;/P&gt;&lt;P&gt;var parent = $feature.ParUS_DS_MH&lt;BR /&gt;var sql = "ParUS_DS_MH ='" + parent + "'"&lt;BR /&gt;var FS = (Filter($layer, sql))&lt;BR /&gt;var FSRound = LengthGeodetic(FS, 'feet')&lt;BR /&gt;return Round(FSRound, 2)&lt;/P&gt;&lt;P&gt;In the attachment, you can see the total length even though the selected line is much shorter.&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2024 17:02:26 GMT</pubDate>
    <dc:creator>SDague_FSMAR</dc:creator>
    <dc:date>2024-02-14T17:02:26Z</dc:date>
    <item>
      <title>Adjust Arcade to calculate field in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/adjust-arcade-to-calculate-field-in-pro/m-p/1382301#M78762</link>
      <description>&lt;P&gt;I have an Arcade expression in a web map to give a total length of lines with a matching ID attribute.&amp;nbsp; I want to modify this Arcade expression to work in a Field Calculation to take the calculated length and write it to a new attribute.&amp;nbsp; I am having trouble converting it.&amp;nbsp; I assume I need an array or FeatureSet, but I am unsure of the correct syntax. If possible to have the FSRound portion below use a stored length vs geodetic length that would be great.&lt;/P&gt;&lt;P&gt;This is for gravity mains that have various segments between manholes and our engineers want to see the total length between manholes.&lt;/P&gt;&lt;P&gt;var parent = $feature.ParUS_DS_MH&lt;BR /&gt;var sql = "ParUS_DS_MH ='" + parent + "'"&lt;BR /&gt;var FS = (Filter($layer, sql))&lt;BR /&gt;var FSRound = LengthGeodetic(FS, 'feet')&lt;BR /&gt;return Round(FSRound, 2)&lt;/P&gt;&lt;P&gt;In the attachment, you can see the total length even though the selected line is much shorter.&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 17:02:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/adjust-arcade-to-calculate-field-in-pro/m-p/1382301#M78762</guid>
      <dc:creator>SDague_FSMAR</dc:creator>
      <dc:date>2024-02-14T17:02:26Z</dc:date>
    </item>
  </channel>
</rss>

