<?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 create field without Geoprocessing tool ? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-create-field-without-geoprocessing-tool/m-p/836037#M3586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Pro SDK does not support DDL (data definition language) tasks such as adding fields or creating feature classes. &amp;nbsp;You need to use Python or&amp;nbsp;geoprocessing to perform these operations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2018 15:55:58 GMT</pubDate>
    <dc:creator>RichRuh</dc:creator>
    <dc:date>2018-10-08T15:55:58Z</dc:date>
    <item>
      <title>How to create field without Geoprocessing tool ?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-create-field-without-geoprocessing-tool/m-p/836036#M3585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are developing tool in Arcgis Pro sdk .We have feature class and we are creates lot of fields using Geoprocessing tools like below in code. But when we use geoprocessing tool (management.AddField) and when we ctreate in order fields are very slow created. How can I solve this G&lt;SPAN&gt;eoprocessing tool (management.AddField)&lt;/SPAN&gt; &amp;nbsp;slowness problem or can I ctreate fields by another way using pro sdk without&amp;nbsp;&lt;SPAN&gt;G&lt;/SPAN&gt;&lt;SPAN&gt;eoprocessing tool (management.AddField)&lt;/SPAN&gt;&amp;nbsp;? Here are the code example (Adding two field in feature class) below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layer layer = MapView.Active.Map.FindLayers(nameOfShape).FirstOrDefault();&lt;/P&gt;&lt;P&gt;FeatureLayer featureLayer = layer as FeatureLayer;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Table table = (layer as FeatureLayer).GetTable();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;int fieldLength = 15;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; bool isNullable = true;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; var parameters = Geoprocessing.MakeValueArray(tableName, "NAME", "TEXT", null, null,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; fieldLength, "Name", isNullable ? "NULABLE" : "NON_NULLABLE");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var results = Geoprocessing.ExecuteToolAsync("management.AddField", parameters);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;int fieldLength1 = 15;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; var parameters1 = Geoprocessing.MakeValueArray(tableName, "IDREF", "TEXT", null, null,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; fieldLength1, "Id Ref", isNullable ? "NULABLE" : "NON_NULLABLE");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var results1 = Geoprocessing.ExecuteToolAsync("management.AddField", parameters1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;etc.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 12:22:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-create-field-without-geoprocessing-tool/m-p/836036#M3585</guid>
      <dc:creator>tanerkoka</dc:creator>
      <dc:date>2018-10-08T12:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create field without Geoprocessing tool ?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-create-field-without-geoprocessing-tool/m-p/836037#M3586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Pro SDK does not support DDL (data definition language) tasks such as adding fields or creating feature classes. &amp;nbsp;You need to use Python or&amp;nbsp;geoprocessing to perform these operations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 15:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-create-field-without-geoprocessing-tool/m-p/836037#M3586</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2018-10-08T15:55:58Z</dc:date>
    </item>
  </channel>
</rss>

