<?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: args.CancelEdit BUG when using Move/Scale/Rotate in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/args-canceledit-bug-when-using-move-scale-rotate/m-p/855089#M4466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for bringing this to our attention. We are looking into what can be done to resolve this for the next release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2018 23:53:09 GMT</pubDate>
    <dc:creator>RussellBrennan</dc:creator>
    <dc:date>2018-05-22T23:53:09Z</dc:date>
    <item>
      <title>args.CancelEdit BUG when using Move/Scale/Rotate</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/args-canceledit-bug-when-using-move-scale-rotate/m-p/855087#M4464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to prevent my users from Reshaping my polygons if that polygon has been approved/verified by the field managers.&amp;nbsp; So I need to catch and rollback(canceledit()) those shape changes in the RowChangeEvent of the Module.&amp;nbsp; This works for catching vertices changes and the following is able to rollback that change&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;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pmi&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;HasShapeChanged &lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;!&lt;/SPAN&gt;canChange&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//Locked Area Rollback&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// CANCEL the Change to the currently selected&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Desktop&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Framework&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Dialogs&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MessageBox&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Show&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Changes Not Allowed to Area Verified Field!"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Area Verified"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; MessageBoxButton&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OK&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; MessageBoxImage&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Exclamation&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;//CANCEL the Change works for edit vertices&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; args&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;CancelEdit&lt;/SPAN&gt;&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="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; Task&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FromResult&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&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="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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem now, is that I discovered that when the Rotate/Scale/Move modify tools are used, args.CancelEdit doesn't roll back/cancel the change like it does for the edit vertices.&amp;nbsp; I am using a feature service and need to continue to roll back any shape changes on my verified geometries.&amp;nbsp; Is this a bug in that the arg when created with the &lt;SPAN&gt;Rotate/Scale/Move&lt;/SPAN&gt; doesn't have the original geometry to rollback to like it does for edit vertices?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:34:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/args-canceledit-bug-when-using-move-scale-rotate/m-p/855087#M4464</guid>
      <dc:creator>MKa</dc:creator>
      <dc:date>2021-12-12T10:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: args.CancelEdit BUG when using Move/Scale/Rotate</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/args-canceledit-bug-when-using-move-scale-rotate/m-p/855088#M4465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am now able to determine when a user does use the Rotate/Scale/Move tools, but I need to prevent or rollback the user changes from these tools.&amp;nbsp; These would be devastating to my feature service and my values that hook into other systems.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2018 20:38:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/args-canceledit-bug-when-using-move-scale-rotate/m-p/855088#M4465</guid>
      <dc:creator>MKa</dc:creator>
      <dc:date>2018-05-21T20:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: args.CancelEdit BUG when using Move/Scale/Rotate</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/args-canceledit-bug-when-using-move-scale-rotate/m-p/855089#M4466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for bringing this to our attention. We are looking into what can be done to resolve this for the next release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2018 23:53:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/args-canceledit-bug-when-using-move-scale-rotate/m-p/855089#M4466</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2018-05-22T23:53:09Z</dc:date>
    </item>
  </channel>
</rss>

