<?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 How do I create a dialog that gives users the option of creating a new temporary feature class (polygon, polyline, points, multipart) or shapefile? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-create-a-dialog-that-gives-users-the/m-p/820231#M2802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to build a button that upon clicking, gives users an option to either create a temporary feature class or a shapefile.&lt;/P&gt;&lt;P&gt;If the user selects the feature class, it gives him the option to choose the type of layer (polygon, polyline, point or multipart). Then it allows the user to name the layer created or the shapefile created if the user chooses otherwise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2019 06:09:37 GMT</pubDate>
    <dc:creator>ShannenLeong</dc:creator>
    <dc:date>2019-02-27T06:09:37Z</dc:date>
    <item>
      <title>How do I create a dialog that gives users the option of creating a new temporary feature class (polygon, polyline, points, multipart) or shapefile?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-create-a-dialog-that-gives-users-the/m-p/820231#M2802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to build a button that upon clicking, gives users an option to either create a temporary feature class or a shapefile.&lt;/P&gt;&lt;P&gt;If the user selects the feature class, it gives him the option to choose the type of layer (polygon, polyline, point or multipart). Then it allows the user to name the layer created or the shapefile created if the user chooses otherwise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 06:09:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-create-a-dialog-that-gives-users-the/m-p/820231#M2802</guid>
      <dc:creator>ShannenLeong</dc:creator>
      <dc:date>2019-02-27T06:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a dialog that gives users the option of creating a new temporary feature class (polygon, polyline, points, multipart) or shapefile?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-create-a-dialog-that-gives-users-the/m-p/820232#M2803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Temporary feature class as in when created, it is stored in a scratch geodatabase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 06:12:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-create-a-dialog-that-gives-users-the/m-p/820232#M2803</guid>
      <dc:creator>ShannenLeong</dc:creator>
      <dc:date>2019-02-27T06:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a dialog that gives users the option of creating a new temporary feature class (polygon, polyline, points, multipart) or shapefile?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-create-a-dialog-that-gives-users-the/m-p/820233#M2804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what I have in C# Windows Form that shortcuts the user to the built-in geoprocessing tool "create feature class" with some tweaks to the input values.&amp;nbsp; My users want a shapefile.&amp;nbsp; This sample provides a "starting point" for reference to be used in an add-in button, or in a custom Windows Form.&lt;/P&gt;&lt;P&gt;(Resulting inputs in the geoprocessing tool attached.)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;private&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Create_Shp_Click&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;object&lt;/SPAN&gt; sender&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; EventArgs e&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Directory&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Exists&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;GVar&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DL &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;@"GISdata\My_Shapefiles\")))
            {
                try
                {
                    new FileInfo(GVar.DL + @"&lt;/SPAN&gt;GISdata\My_Shapefiles\"&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Directory&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Create&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;catch&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token class-name"&gt;Exception&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                    MessageBox&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Show&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;GVar&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DL &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;@"GISdata\My_Shapefiles\ does not exist."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" Missing Outpath Folder"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                        MessageBoxButtons&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OK&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                        MessageBoxIcon&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Warning&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                        MessageBoxDefaultButton&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Button1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                        MessageBoxOptions&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DefaultDesktopOnly&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;


            &lt;SPAN class="keyword token"&gt;string&lt;/SPAN&gt; out_path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GVar&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DL &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;@"GISdata\My_Shapefiles\";
            string out_name = "&lt;/SPAN&gt;my_shapefile&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;shp"&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; param_values &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Geoprocessing&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;MakeValueArray&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;out_path&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;out_name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
            Geoprocessing&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;OpenToolDialog&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"CreateFeatureclass_management"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; param_values&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:43:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-create-a-dialog-that-gives-users-the/m-p/820233#M2804</guid>
      <dc:creator>MikeRatcliffe</dc:creator>
      <dc:date>2021-12-12T09:43:33Z</dc:date>
    </item>
  </channel>
</rss>

