<?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 Undo/Redo Delete Connected Line Features on a Point Feature in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/undo-redo-delete-connected-line-features-on-a/m-p/815247#M2546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a user deletes a point in our&amp;nbsp;Pro config, we need to delete any 'connected' links (lines) as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you have a point "J-1" connected to a link "P-1" connected to a point "J-2" and you select and delete "J-1", then I need to also delete "P-1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got this implemented.&amp;nbsp; However, when undo is used, that link is not restored.&amp;nbsp; Right now I am using RemoveRows on the feature class table and passing in the list of objectids to remove.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using Pro SDK 2.5.&amp;nbsp; With 2.6, there is the EditStarted event.&amp;nbsp; Could this be used so that I could chain an operation that deletes the connected links?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to better handle this&amp;nbsp;use case (without going to 2.5)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2020 00:32:36 GMT</pubDate>
    <dc:creator>KrisCulin</dc:creator>
    <dc:date>2020-08-07T00:32:36Z</dc:date>
    <item>
      <title>Undo/Redo Delete Connected Line Features on a Point Feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/undo-redo-delete-connected-line-features-on-a/m-p/815247#M2546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a user deletes a point in our&amp;nbsp;Pro config, we need to delete any 'connected' links (lines) as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you have a point "J-1" connected to a link "P-1" connected to a point "J-2" and you select and delete "J-1", then I need to also delete "P-1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got this implemented.&amp;nbsp; However, when undo is used, that link is not restored.&amp;nbsp; Right now I am using RemoveRows on the feature class table and passing in the list of objectids to remove.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently using Pro SDK 2.5.&amp;nbsp; With 2.6, there is the EditStarted event.&amp;nbsp; Could this be used so that I could chain an operation that deletes the connected links?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to better handle this&amp;nbsp;use case (without going to 2.5)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2020 00:32:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/undo-redo-delete-connected-line-features-on-a/m-p/815247#M2546</guid>
      <dc:creator>KrisCulin</dc:creator>
      <dc:date>2020-08-07T00:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Undo/Redo Delete Connected Line Features on a Point Feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/undo-redo-delete-connected-line-features-on-a/m-p/815248#M2547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Kris,&lt;/P&gt;&lt;P&gt;The row, edit started and editcompleting events all pass through the current edit operation that allow you to make additional edits that will appear as one operation on the stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. Delete additional features during row delete&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;onRowDeletedEvent&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;RowChangedEventArgs obj&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;_lastEdit &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; obj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Guid&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//reentrancy check&lt;/SPAN&gt;
      &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;//delete the next objectID too&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; nextID &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; obj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Row&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetObjectID&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        obj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Operation&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Delete&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;_layer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; nextID&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        _lastEdit &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; obj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Guid&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since EditStarted and EditCompleting are global events, you wont know what the edit is unless its one of yours that you can identify through EditOperation.EventToken.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:37:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/undo-redo-delete-connected-line-features-on-a/m-p/815248#M2547</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T09:37:47Z</dc:date>
    </item>
  </channel>
</rss>

