<?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: Delete MS Word-Object in Dataview with Arcpy (ArcMap) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/delete-ms-word-object-in-dataview-with-arcpy/m-p/1362954#M69456</link>
    <description>&lt;P&gt;My problem was solved in my &lt;A href="https://gis.stackexchange.com/questions/473168/delete-ms-word-object-in-dataview-with-arcpy-arcmap" target="_self"&gt;question on GIS StackExchange&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;It's not possible with arcpy, i will try it using ArcObjects / VBA&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2023 08:55:28 GMT</pubDate>
    <dc:creator>Philip_Sarnecki</dc:creator>
    <dc:date>2023-12-20T08:55:28Z</dc:date>
    <item>
      <title>Delete MS Word-Object in Dataview with Arcpy (ArcMap)</title>
      <link>https://community.esri.com/t5/python-questions/delete-ms-word-object-in-dataview-with-arcpy/m-p/1361948#M69430</link>
      <description>&lt;P&gt;My mxd has a dataframe which contains a MS Word-Object ("Insert" - "Object").&lt;/P&gt;&lt;P&gt;I want to access the mxd dataframe in PyScripter using&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.mapping.ListDataFrames(mxd)[0]&lt;/LI-CODE&gt;&lt;P&gt;However, i get the following error:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;AttributeError: 'NoneType' object has no attribute 'dataFrames'&lt;/LI-CODE&gt;&lt;P&gt;Also, importing the mxd to ArcGIS Pro does not work either.&lt;/P&gt;&lt;P&gt;When i delete the Word-Object these errors does not occur.&lt;/P&gt;&lt;P&gt;(Note: When i use the build in python window in ArcMap, the AttributeError does not occur. However, i would like to make it work in PyScripter)&lt;/P&gt;&lt;P&gt;I thought about deleting the Word-Object with Arcpy, is that possible? I have hundreds of mxds with this Word-Object, so i need to automate this.&lt;/P&gt;&lt;P&gt;I already tried using ListLayoutElements but nothing is returned because the object was added in data view.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 10:37:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/delete-ms-word-object-in-dataview-with-arcpy/m-p/1361948#M69430</guid>
      <dc:creator>Philip_Sarnecki</dc:creator>
      <dc:date>2023-12-18T10:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Delete MS Word-Object in Dataview with Arcpy (ArcMap)</title>
      <link>https://community.esri.com/t5/python-questions/delete-ms-word-object-in-dataview-with-arcpy/m-p/1362954#M69456</link>
      <description>&lt;P&gt;My problem was solved in my &lt;A href="https://gis.stackexchange.com/questions/473168/delete-ms-word-object-in-dataview-with-arcpy-arcmap" target="_self"&gt;question on GIS StackExchange&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;It's not possible with arcpy, i will try it using ArcObjects / VBA&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 08:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/delete-ms-word-object-in-dataview-with-arcpy/m-p/1362954#M69456</guid>
      <dc:creator>Philip_Sarnecki</dc:creator>
      <dc:date>2023-12-20T08:55:28Z</dc:date>
    </item>
  </channel>
</rss>

