<?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: Using arcpy to automate delete drawing objects / graphic elements in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-arcpy-to-automate-delete-drawing-objects/m-p/85293#M6728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeff, Tim, thanks for the replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim - that is a very good solution and I'll investigate that. I'll need to put some thought into it as the script needs to be executed from inside the mxd, but if I can get over that hurdle, we could be in business.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2014 22:14:23 GMT</pubDate>
    <dc:creator>AnthonyCheesman1</dc:creator>
    <dc:date>2014-02-10T22:14:23Z</dc:date>
    <item>
      <title>Using arcpy to automate delete drawing objects / graphic elements</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-automate-delete-drawing-objects/m-p/85290#M6725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking for a way to automate the deletion of drawing / graphic objects in data (not page layout) view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've investigate using the GraphicElement object - but this does not seem to recognise any features drawn in data view (ie if I use ListLayoutElements on objects drawn in data view, nothing is returned, but it will return objects drawn in page layout view).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I can find some way to identify the elements in data view, I should be able to use the delete() method to get rid of them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any bright sparks have any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Feb 2014 23:15:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-automate-delete-drawing-objects/m-p/85290#M6725</guid>
      <dc:creator>AnthonyCheesman1</dc:creator>
      <dc:date>2014-02-08T23:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to automate delete drawing objects / graphic elements</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-automate-delete-drawing-objects/m-p/85291#M6726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Arcpy.mapping only allows you to clone/delete graphic elements on a layout.&amp;nbsp; I believe the only other way to accomplish what you need is with ArcObjects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 13:14:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-automate-delete-drawing-objects/m-p/85291#M6726</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2014-02-10T13:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to automate delete drawing objects / graphic elements</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-automate-delete-drawing-objects/m-p/85292#M6727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the purpose of this tool is to 'clean' documents of un-needed graphics, perhaps an alternative approach may work? (i.e. use arcpy.mapping to copy all the layers to a new temporary document, saving it, closing the original document and re-naming the new document to the old documents name. This would effectively get rid of the graphics but keep the layers?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 21:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-automate-delete-drawing-objects/m-p/85292#M6727</guid>
      <dc:creator>TimBarnes</dc:creator>
      <dc:date>2014-02-10T21:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to automate delete drawing objects / graphic elements</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-automate-delete-drawing-objects/m-p/85293#M6728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeff, Tim, thanks for the replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim - that is a very good solution and I'll investigate that. I'll need to put some thought into it as the script needs to be executed from inside the mxd, but if I can get over that hurdle, we could be in business.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 22:14:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-automate-delete-drawing-objects/m-p/85293#M6728</guid>
      <dc:creator>AnthonyCheesman1</dc:creator>
      <dc:date>2014-02-10T22:14:23Z</dc:date>
    </item>
  </channel>
</rss>

