<?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 arcpy.mp update LegendElement's map frame in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-mp-update-legendelement-s-map-frame/m-p/319242#M24812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Python arcpy.mp module, the LegendElement class (&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/legendelement-class.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/mapping/legendelement-class.htm"&gt;LegendElement—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;) states that the mapFrame property is read/write but I am getting a value error when trying to assign it a map frame object.&amp;nbsp; My end goal is to try to swap the map a given legend is referencing.&amp;nbsp; Am I doing something wrong or is this a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/506813_pastedImage_498.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Sep 2020 19:24:17 GMT</pubDate>
    <dc:creator>CM1</dc:creator>
    <dc:date>2020-09-11T19:24:17Z</dc:date>
    <item>
      <title>arcpy.mp update LegendElement's map frame</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mp-update-legendelement-s-map-frame/m-p/319242#M24812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Python arcpy.mp module, the LegendElement class (&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/legendelement-class.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/mapping/legendelement-class.htm"&gt;LegendElement—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;) states that the mapFrame property is read/write but I am getting a value error when trying to assign it a map frame object.&amp;nbsp; My end goal is to try to swap the map a given legend is referencing.&amp;nbsp; Am I doing something wrong or is this a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/506813_pastedImage_498.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2020 19:24:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mp-update-legendelement-s-map-frame/m-p/319242#M24812</guid>
      <dc:creator>CM1</dc:creator>
      <dc:date>2020-09-11T19:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.mp update LegendElement's map frame</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mp-update-legendelement-s-map-frame/m-p/319243#M24813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you show the relevant code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2020 21:42:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mp-update-legendelement-s-map-frame/m-p/319243#M24813</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-09-11T21:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.mp update LegendElement's map frame</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mp-update-legendelement-s-map-frame/m-p/319244#M24814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue resolved, not sure what was going on in my attached image RE the type error given that m: MapFrame and legend: Legend.&amp;nbsp; Re-tried this in a fresh session today though and things worked as intended.&amp;nbsp; May have just gotten variables mixed up in the Python console.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2020 14:15:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mp-update-legendelement-s-map-frame/m-p/319244#M24814</guid>
      <dc:creator>CM1</dc:creator>
      <dc:date>2020-09-14T14:15:33Z</dc:date>
    </item>
  </channel>
</rss>

