<?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: Create a feature in a layer with subtypes in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-a-feature-in-a-layer-with-subtypes/m-p/1576132#M12504</link>
    <description>&lt;P&gt;Hi Narelle&lt;/P&gt;&lt;P&gt;The solution works, I was not aware of the Inspector property of the editing template.&lt;/P&gt;&lt;P&gt;The only detail that you forgot is that you must&amp;nbsp;ActivateDefaultToolAsync on the editing template or else the Inspector of the edit template is null.&lt;/P&gt;&lt;P&gt;Found it here:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/inspector-for-editing-template-returns-null/td-p/1054033" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-sdk-questions/inspector-for-editing-template-returns-null/td-p/1054033&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there should be a few words about this on the Inspector property docs.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2025 05:45:45 GMT</pubDate>
    <dc:creator>ModyBuchbinder</dc:creator>
    <dc:date>2025-01-16T05:45:45Z</dc:date>
    <item>
      <title>Create a feature in a layer with subtypes</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-a-feature-in-a-layer-with-subtypes/m-p/1574659#M12491</link>
      <description>&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;I need t create a feature in a featureclass that has subtypes in Enterprise geodatabase with some other attributes.&lt;/P&gt;&lt;P&gt;Some of the attributes will be taken from the subtype default values and other will be taken from a value list.&lt;/P&gt;&lt;P&gt;As far as I understand, the way to create a feature with default subtype values is to use edit template (it looks like define subtype create edit template for each subtype automatically).&lt;/P&gt;&lt;P&gt;The only way I found to use it is to do editOperation.create(EditTemplate).&lt;/P&gt;&lt;P&gt;I have an option to add the geometry to the create method but no other attributes (if I am using template).&lt;/P&gt;&lt;P&gt;I need something like editOperation.Create(editTemplate, geometry, attribute dictionary)&lt;/P&gt;&lt;P&gt;The only way I found is to take the new record and use Inspector to update values.&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2025 15:43:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-a-feature-in-a-layer-with-subtypes/m-p/1574659#M12491</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2025-01-12T15:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create a feature in a layer with subtypes</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-a-feature-in-a-layer-with-subtypes/m-p/1574696#M12492</link>
      <description>&lt;P&gt;Hi Mody,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the Inspector from the Template object to provide &lt;STRONG&gt;temporary&lt;/STRONG&gt; override values for field values prior to calling the EditOperation.Create method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// perform the creation
var op = new EditOperation();
op.Name = "Create feature";
// use template default field values
op.Create(template, geometry);

// to modify default template properties
var insp = template.Inspector;
insp["City"] = "Perth";

// create with the modified fields and a different geometry
op.Create(template, geometry2);

// reset the template fields back to original defaults
insp.Cancel();

// execute the operation
bool result = op.Execute();&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 12 Jan 2025 23:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-a-feature-in-a-layer-with-subtypes/m-p/1574696#M12492</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2025-01-12T23:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a feature in a layer with subtypes</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-a-feature-in-a-layer-with-subtypes/m-p/1576132#M12504</link>
      <description>&lt;P&gt;Hi Narelle&lt;/P&gt;&lt;P&gt;The solution works, I was not aware of the Inspector property of the editing template.&lt;/P&gt;&lt;P&gt;The only detail that you forgot is that you must&amp;nbsp;ActivateDefaultToolAsync on the editing template or else the Inspector of the edit template is null.&lt;/P&gt;&lt;P&gt;Found it here:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/inspector-for-editing-template-returns-null/td-p/1054033" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-sdk-questions/inspector-for-editing-template-returns-null/td-p/1054033&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there should be a few words about this on the Inspector property docs.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 05:45:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-a-feature-in-a-layer-with-subtypes/m-p/1576132#M12504</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2025-01-16T05:45:45Z</dc:date>
    </item>
  </channel>
</rss>

