<?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 How to know whether an IElement object is moved or deleted on the map? or prevent it? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-whether-an-ielement-object-is-moved-or/m-p/721175#M19212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everybody:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am writing an ArcMap 10.0 extension that provides a multiple step workflow. In one of the steps of the workflow, my code will generate a graphical element (IElement object) on the map display to give some information to user to continue next step, and my code is cleaning it up at the end (currently deleting all graphical elements on the map).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; However, in the design above the extension will prevent user from using graphical or text element by using the out-of-box "Draw" toolbar, because my extension will clean the elements up from time to time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to improve this but keeping the reference to the IElement object when it is created, and delete only it at the end instead of deleting all elements. However, the geraphical element can be deleted by tools in "Draw" toolbar. If it is accidentially deleted, my deletion code will throw exception at the end. Is there anyway for my code to detect whether that element is no longer existing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alternatively, if I have a way to prevent user to delete or edit that element, it should also work, any method?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2014 21:59:27 GMT</pubDate>
    <dc:creator>SuiHuang</dc:creator>
    <dc:date>2014-01-30T21:59:27Z</dc:date>
    <item>
      <title>How to know whether an IElement object is moved or deleted on the map? or prevent it?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-whether-an-ielement-object-is-moved-or/m-p/721175#M19212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everybody:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am writing an ArcMap 10.0 extension that provides a multiple step workflow. In one of the steps of the workflow, my code will generate a graphical element (IElement object) on the map display to give some information to user to continue next step, and my code is cleaning it up at the end (currently deleting all graphical elements on the map).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; However, in the design above the extension will prevent user from using graphical or text element by using the out-of-box "Draw" toolbar, because my extension will clean the elements up from time to time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to improve this but keeping the reference to the IElement object when it is created, and delete only it at the end instead of deleting all elements. However, the geraphical element can be deleted by tools in "Draw" toolbar. If it is accidentially deleted, my deletion code will throw exception at the end. Is there anyway for my code to detect whether that element is no longer existing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alternatively, if I have a way to prevent user to delete or edit that element, it should also work, any method?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 21:59:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-whether-an-ielement-object-is-moved-or/m-p/721175#M19212</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2014-01-30T21:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to know whether an IElement object is moved or deleted on the map? or prevent</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-whether-an-ielement-object-is-moved-or/m-p/721176#M19213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use IElementProperties to assign a name to the element when it is created.&amp;nbsp; When you go to delete the element, loop through the graphics container looking for an element with that name.&amp;nbsp; If you don't find it, it has already been deleted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 12:00:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-whether-an-ielement-object-is-moved-or/m-p/721176#M19213</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2014-01-31T12:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to know whether an IElement object is moved or deleted on the map? or prevent</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-whether-an-ielement-object-is-moved-or/m-p/721177#M19214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It works, thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Use IElementProperties to assign a name to the element when it is created.&amp;nbsp; When you go to delete the element, loop through the graphics container looking for an element with that name.&amp;nbsp; If you don't find it, it has already been deleted.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 22:21:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-know-whether-an-ielement-object-is-moved-or/m-p/721177#M19214</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2014-02-03T22:21:27Z</dc:date>
    </item>
  </channel>
</rss>

