<?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 values ​​immediately when creating in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-values-immediately-when-creating/m-p/1134344#M7622</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use&amp;nbsp; Create with other parameters:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var polygFeatureClass = polygFeatureLayer.GetFeatureClass();
var shapeFieldName = polygFeatureClass.GetDefinition().GetShapeField();
Dictionary&amp;lt;string, object&amp;gt; attributes = new Dictionary&amp;lt;string, object&amp;gt;();
attributes.Add(shapeFieldName, polygonGeometry1);
attributes[Nazev] = value1.ToString();
attributes[vyskyt] = 0;
editOp.Create(polygFeatureClas, attributes);&lt;/LI-CODE&gt;&lt;P&gt;Get polygon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jan 2022 14:33:44 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2022-01-17T14:33:44Z</dc:date>
    <item>
      <title>Write values ​​immediately when creating</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-values-immediately-when-creating/m-p/1134313#M7621</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there any way to write values ​​directly to the attribute table without having to use an inspector? Some code notation would write the value to the column as soon as the polygon was created.&lt;/P&gt;&lt;P&gt;I have it written like this now, but it clogs me with code and slows down the application:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;long oid6 = 0;
                        var polygOperation = new EditOperation()
                        {
                            Name = "Tvorba polygonu",
                            SelectNewFeatures = false
                        };
                        polygOperation.Create(polygFeatureLayer, polygonGeometry1, (oid) =&amp;gt; { oid6 = oid; });
                        await polygOperation.ExecuteAsync();
                        var inspector6 = new Inspector(true);
                        inspector6.Load(polygFeatureLayer, oid6);
                        inspector6[Nazev] =
                            value1.ToString();
                        inspector6[vyskyt] = 0;
                        inspector6.Apply();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Isn't there an option like this ?:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;long oid6 = 0;
                        var polygOperation = new EditOperation()
                        {
                            Name = "Tvorba polygonu",
                            SelectNewFeatures = false
                        };
                        polygOperation.Create(polygFeatureLayer, polygonGeometry1, (oid) =&amp;gt; { oid6 = oid; }, polyCursor2.Current[Nazev]=value1, polyCursor2.Current[vyskyt] = 0);
                        await polygOperation.ExecuteAsync();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll be happy for any advice.&lt;/P&gt;&lt;P&gt;I am creating an application in ArcGIS Pro SDK&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 11:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-values-immediately-when-creating/m-p/1134313#M7621</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-01-17T11:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Write values ​​immediately when creating</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-values-immediately-when-creating/m-p/1134344#M7622</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use&amp;nbsp; Create with other parameters:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var polygFeatureClass = polygFeatureLayer.GetFeatureClass();
var shapeFieldName = polygFeatureClass.GetDefinition().GetShapeField();
Dictionary&amp;lt;string, object&amp;gt; attributes = new Dictionary&amp;lt;string, object&amp;gt;();
attributes.Add(shapeFieldName, polygonGeometry1);
attributes[Nazev] = value1.ToString();
attributes[vyskyt] = 0;
editOp.Create(polygFeatureClas, attributes);&lt;/LI-CODE&gt;&lt;P&gt;Get polygon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 14:33:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-values-immediately-when-creating/m-p/1134344#M7622</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-01-17T14:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Write values ​​immediately when creating</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-values-immediately-when-creating/m-p/1134478#M7626</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you very much, so far it looks like it's faster.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 06:30:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/write-values-immediately-when-creating/m-p/1134478#M7626</guid>
      <dc:creator>DavidMrázek</dc:creator>
      <dc:date>2022-01-18T06:30:41Z</dc:date>
    </item>
  </channel>
</rss>

