<?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: Export to shapefile in VB.NET in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/export-to-shapefile-in-vb-net/m-p/1396971#M11230</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can do it using geoprocessing&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/tool-reference/conversion/feature-class-to-shapefile.htm" target="_self"&gt;Feature Class To Shapefile&lt;/A&gt; tool.&lt;/P&gt;&lt;P&gt;Geoprocessing API reference is &lt;A href="https://pro.arcgis.com/en/pro-app/3.1/sdk/api-reference/topic9379.html" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Mar 2024 19:03:36 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2024-03-16T19:03:36Z</dc:date>
    <item>
      <title>Export to shapefile in VB.NET</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/export-to-shapefile-in-vb-net/m-p/1396495#M11228</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I export selected feature in Layer to Shapefile in VB.NET&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is example how it can export in ArcGIS desktop&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/121057/arcmap-vb-net-export-map-to-shp-error" target="_blank" rel="noopener"&gt;https://gis.stackexchange.com/questions/121057/arcmap-vb-net-export-map-to-shp-error&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 11:54:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/export-to-shapefile-in-vb-net/m-p/1396495#M11228</guid>
      <dc:creator>SigurdurGesr</dc:creator>
      <dc:date>2024-03-15T11:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export to shapefile in VB.NET</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/export-to-shapefile-in-vb-net/m-p/1396971#M11230</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can do it using geoprocessing&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/tool-reference/conversion/feature-class-to-shapefile.htm" target="_self"&gt;Feature Class To Shapefile&lt;/A&gt; tool.&lt;/P&gt;&lt;P&gt;Geoprocessing API reference is &lt;A href="https://pro.arcgis.com/en/pro-app/3.1/sdk/api-reference/topic9379.html" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 19:03:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/export-to-shapefile-in-vb-net/m-p/1396971#M11230</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-03-16T19:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Export to shapefile in VB.NET</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/export-to-shapefile-in-vb-net/m-p/1398725#M11258</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the solution&lt;BR /&gt;is there any expert who can help&lt;BR /&gt;need to be able to apply a filter from Layer and determine the file name that will be saved&lt;BR /&gt;and know when Geoprocessing has finished processing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;This is sample from&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/using-geoprocessing-api-to-convert-feature-class/m-p/794619" target="_self"&gt;RawMcGee&lt;/A&gt;&amp;nbsp; &amp;nbsp;which I found in the discussion&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;  protected async Task&amp;lt;string&amp;gt; ConvertShp(string layerpath, string outpath)
        {
            if (!System.IO.Directory.Exists(outpath))
                System.IO.Directory.CreateDirectory(outpath);
            var valueArray = await QueuedTask.Run(() =&amp;gt;
            {
                //input layers list should contain the path of each layer name, i.e. if the root node is "Mapping" and the layer name is "gs_points", path is "Mapping\\gs_points".
                List&amp;lt;string&amp;gt; inlayers = new List&amp;lt;string&amp;gt;();
                inlayers.Add(layerpath);
                //outpath is just the folder to save the shapefiles in
                return Geoprocessing.MakeValueArray(inlayers, outpath);
            });

            // to let the GP tool run asynchronously without blocking the main thread
            // use the GPThread option of GPExecuteToolFlasgs
            //
            GPExecuteToolFlags flags = GPExecuteToolFlags.GPThread;  // instruct the tool run non-blocking GPThread
            IGPResult gpResult = await Geoprocessing.ExecuteToolAsync("FeatureClassToShapefile_conversion", valueArray, null, null, null, flags);

            return string.IsNullOrEmpty(gpResult.ReturnValue)
                  ? $@"Error in gp tool: {gpResult.ErrorMessages}"
                  : $@"Ok: {gpResult.ReturnValue}";
        }‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 20:38:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/export-to-shapefile-in-vb-net/m-p/1398725#M11258</guid>
      <dc:creator>SigurdurGesr</dc:creator>
      <dc:date>2024-03-20T20:38:00Z</dc:date>
    </item>
  </channel>
</rss>

