<?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 Chained operation with Duplicate or Split in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/chained-operation-with-duplicate-or-split/m-p/833349#M3418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When creating a feature the EditOperation.Create method allows you to specify callback to get the generated ObjectId for the newly created feature. Unfortunately, the operations like EditOperation.Duplicate and EditOperation.Split do not allow you to supply a callback to get the created ObjectId. This makes it hard to chain an operation that performs edits involving the newly-created feature.&lt;/P&gt;&lt;P&gt;What is the best way to get the ObjectId from a&amp;nbsp;Split or Duplicate in order to perform a chained operation?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2018 16:50:30 GMT</pubDate>
    <dc:creator>MindyBurkett1</dc:creator>
    <dc:date>2018-10-12T16:50:30Z</dc:date>
    <item>
      <title>Chained operation with Duplicate or Split</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/chained-operation-with-duplicate-or-split/m-p/833349#M3418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When creating a feature the EditOperation.Create method allows you to specify callback to get the generated ObjectId for the newly created feature. Unfortunately, the operations like EditOperation.Duplicate and EditOperation.Split do not allow you to supply a callback to get the created ObjectId. This makes it hard to chain an operation that performs edits involving the newly-created feature.&lt;/P&gt;&lt;P&gt;What is the best way to get the ObjectId from a&amp;nbsp;Split or Duplicate in order to perform a chained operation?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2018 16:50:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/chained-operation-with-duplicate-or-split/m-p/833349#M3418</guid>
      <dc:creator>MindyBurkett1</dc:creator>
      <dc:date>2018-10-12T16:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Chained operation with Duplicate or Split</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/chained-operation-with-duplicate-or-split/m-p/833350#M3419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I implemented this using the&amp;nbsp;RowCreatedEvent but this isn't ideal because I can't know for sure if a given row created event corresponds to the edit operation that interests me. I looked at the internal Operation property on the RowCreatedEventArgs but it isn't the same as my original operation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2018 22:50:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/chained-operation-with-duplicate-or-split/m-p/833350#M3419</guid>
      <dc:creator>MindyBurkett1</dc:creator>
      <dc:date>2018-10-12T22:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Chained operation with Duplicate or Split</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/chained-operation-with-duplicate-or-split/m-p/833351#M3420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran across this issue when implementing a rather convoluted edit operation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best way, I believe, is to use an edit operation callback. Something along the lines of&lt;/P&gt;&lt;P&gt;var op = new EditOperation();&lt;BR /&gt; op.Callback((context) =&amp;gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;var fc = Layer.GetFeatureClass();&lt;BR /&gt;&amp;nbsp; &amp;nbsp;var buffer = fc.CreateRowBuffer();&lt;BR /&gt;&amp;nbsp; &amp;nbsp;var f = fc.CreateRow(buffer);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;var id = f.GetObjectID();&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 13:57:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/chained-operation-with-duplicate-or-split/m-p/833351#M3420</guid>
      <dc:creator>MatthewJackson3</dc:creator>
      <dc:date>2019-05-21T13:57:32Z</dc:date>
    </item>
  </channel>
</rss>

