<?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: Hook into ArcGIS command and get events in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/hook-into-arcgis-command-and-get-events/m-p/830253#M3250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;The best way to do this would be to listen to the row changed events for the layers you are interested in. You can then check for geometry changes and act accordingly.&lt;/P&gt;&lt;P&gt;There's a similar thread here:&amp;nbsp;&lt;A href="https://community.esri.com/message/903262-capturing-edit-event-on-vertex-basis"&gt;https://community.esri.com/message/903262-capturing-edit-event-on-vertex-basis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 May 2020 20:49:31 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-05-01T20:49:31Z</dc:date>
    <item>
      <title>Hook into ArcGIS command and get events</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/hook-into-arcgis-command-and-get-events/m-p/830251#M3248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS has a nice command to edit the vertices (add, delete, move etc.) of a polyline and it also makes it easy for me to actually call it from a Button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; iCommand &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; FrameworkApplication&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetPlugInWrapper&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"esri_editing_EditVerticesModifyFeature"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; ICommand&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;iCommand &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; iCommand&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;CanExecute&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; 
    iCommand&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Execute&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;null&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now whenever&amp;nbsp;a polyline vertice is added, moved or deleted through this command I need to update an internal data structure. Is there a way to get this information somehow? Maybe there's an event or something?&lt;/P&gt;&lt;P&gt;Because it would be great if I could just use the ArcGIS functionality&amp;nbsp;instead of having to re-implement most of the stuff..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:01:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/hook-into-arcgis-command-and-get-events/m-p/830251#M3248</guid>
      <dc:creator>RehmSoftware</dc:creator>
      <dc:date>2021-12-12T10:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hook into ArcGIS command and get events</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/hook-into-arcgis-command-and-get-events/m-p/830252#M3249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EditCompletedEvent is invoked after this command wraps, but only if there was an actual change. Completing with no changes or cancelling does not raise the event. Would be nice if it still called it with CompletedType == EditCompletedType.Discard, but that is not what I see. Good enough for my purposes, but you may need to see if some other related event (e.g. EditCompletingEvent) is raised in case you need more control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic9762.html"&gt;https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic9762.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2020 21:30:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/hook-into-arcgis-command-and-get-events/m-p/830252#M3249</guid>
      <dc:creator>PauloBarthelmess</dc:creator>
      <dc:date>2020-04-30T21:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hook into ArcGIS command and get events</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/hook-into-arcgis-command-and-get-events/m-p/830253#M3250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;The best way to do this would be to listen to the row changed events for the layers you are interested in. You can then check for geometry changes and act accordingly.&lt;/P&gt;&lt;P&gt;There's a similar thread here:&amp;nbsp;&lt;A href="https://community.esri.com/message/903262-capturing-edit-event-on-vertex-basis"&gt;https://community.esri.com/message/903262-capturing-edit-event-on-vertex-basis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2020 20:49:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/hook-into-arcgis-command-and-get-events/m-p/830253#M3250</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-05-01T20:49:31Z</dc:date>
    </item>
  </channel>
</rss>

