<?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: Write statisticsField in Dissolve in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132346#M7589</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes that's it, thank you very much! It was enough to omit the comma and combine it into one text.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jan 2022 07:58:47 GMT</pubDate>
    <dc:creator>DavidMrázek</dc:creator>
    <dc:date>2022-01-11T07:58:47Z</dc:date>
    <item>
      <title>Write statisticsField in Dissolve</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1131958#M7580</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;how to write statisticsFields in managment Dissolve correctly?&lt;/P&gt;&lt;P&gt;I tried it like this:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; object[] sumArea = { "Shape_Area", "SUM" };
            object[] sumLenght = { "Shape_Length", "SUM" };
            object[] statisticsFields = { sumArea, sumLenght };
  object[] listOfPara = { shpLayer, file, dissolveFields, statisticsFields, "MULTI_PART", "DISSOLVE_LINES" };
//second
 object[] statisticsFields = { "Shape_Area", "SUM" ,"Shape_Length", "SUM"}
 object[] listOfPara = { shpLayer, file, dissolveFields, statisticsFields, "MULTI_PART", "DISSOLVE_LINES" };&lt;/LI-CODE&gt;&lt;P&gt;Both without success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will be happy for any advice.&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 09:43:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1131958#M7580</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-01-10T09:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Write statisticsField in Dissolve</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1131993#M7581</link>
      <description>&lt;P&gt;You have this published in the ArcGIS Pro space, hence, use python&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/dissolve.htm" target="_blank"&gt;Dissolve (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If this is for the Pro SDK I will move it&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 13:14:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1131993#M7581</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-01-10T13:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Write statisticsField in Dissolve</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132026#M7583</link>
      <description>&lt;P&gt;The &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/dissolve.htm" target="_self"&gt;documentation&lt;/A&gt; shows the statistic fields added like [[field, {statistic_type}],...], so try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;object[] statisticsFields = { "Shape_Area", {"SUM"} ,"Shape_Length", {"SUM"}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used statistics fields in an ArcMap app, and while the documentation showed the same format, my code was able to use them by adding them like "Shape_Area Sum". You might want to give that syntax a try.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 14:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132026#M7583</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-01-10T14:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Write statisticsField in Dissolve</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132030#M7584</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would recommend to execute the same tool from ArcGIS Pro Geoprocessing pane. Then copy python script and check, how parameters looks in python script. For .NET&amp;nbsp; there is no better way to get geoprocessing function parameters. Using&amp;nbsp;&lt;EM&gt;Geoprocessing&lt;/EM&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;EM&gt;MakeValueArray try to get the same or similar.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 14:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132030#M7584</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-01-10T14:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Write statisticsField in Dissolve</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132326#M7585</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;yes I do exactly but I don't know how to rewrite it in c # but thank you for the advice&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 05:45:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132326#M7585</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-01-11T05:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Write statisticsField in Dissolve</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132327#M7586</link>
      <description>&lt;P&gt;That's what I did. But I don't know how to rewrite it in C#. Yes, it is for the ProSDK.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 05:48:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132327#M7586</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-01-11T05:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Write statisticsField in Dissolve</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132328#M7587</link>
      <description>&lt;P&gt;Thank you for the advice, but it can't be rewritten like this.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 05:50:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132328#M7587</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-01-11T05:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Write statisticsField in Dissolve</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132336#M7588</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you tried like this:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string statisticsFields = "Shape_Length SUM;Shape_Area SUM";
var parameters = Geoprocessing.MakeValueArray(shpLayer, file, dissolveFields, statisticsFields, "MULTI_PART", "DISSOLVE_LINES");
var gpResult = Geoprocessing.ExecuteToolAsync("Dissolve_management", parameters, null, CancelableProgressor.None, GPExecuteToolFlags.None);
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 11 Jan 2022 06:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132336#M7588</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-01-11T06:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Write statisticsField in Dissolve</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132346#M7589</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes that's it, thank you very much! It was enough to omit the comma and combine it into one text.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 07:58:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-statisticsfield-in-dissolve/m-p/1132346#M7589</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-01-11T07:58:47Z</dc:date>
    </item>
  </channel>
</rss>

