<?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: Arcpy.mp to select layout elements? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247392#M19145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;they give an example of moving a scalebar in this tutorial&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/help/mapping/tutorials/tutorial-create-a-map-book-with-python.htm" title="http://pro.arcgis.com/en/pro-app/help/mapping/tutorials/tutorial-create-a-map-book-with-python.htm"&gt;Create a map book with Python—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2018 22:01:15 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-06-13T22:01:15Z</dc:date>
    <item>
      <title>Arcpy.mp to select layout elements?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247391#M19144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way in Python 3.x to programmatically select a layout element, such as a scale bar? Thanks much, cob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 21:14:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247391#M19144</guid>
      <dc:creator>CharlesBailey3</dc:creator>
      <dc:date>2018-06-13T21:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy.mp to select layout elements?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247392#M19145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;they give an example of moving a scalebar in this tutorial&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/help/mapping/tutorials/tutorial-create-a-map-book-with-python.htm" title="http://pro.arcgis.com/en/pro-app/help/mapping/tutorials/tutorial-create-a-map-book-with-python.htm"&gt;Create a map book with Python—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 22:01:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247392#M19145</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-06-13T22:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy.mp to select layout elements?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247393#M19146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan,&amp;nbsp; but it is actually never selected in that example, just repositioned. I can set the map frame&amp;nbsp;as well, but there must be a programmatic way to select the element, so that when I open the properties page with a task step it pertains to the selected element?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:03:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247393#M19146</guid>
      <dc:creator>CharlesBailey3</dc:creator>
      <dc:date>2018-06-14T14:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy.mp to select layout elements?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247394#M19147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Charles, you will need to sniff around in the arcpy section for other examples of **element things.&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/mapsurroundelement-class.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/mapping/mapsurroundelement-class.htm"&gt;MapsurroundElement—ArcPy | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it requires you know the element name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:25:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247394#M19147</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-06-14T14:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy.mp to select layout elements?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247395#M19148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I know the name - I can set the map frame and do all sorts of things to the elements, but can't figure out how to select one. I also don't see how to add items to the Legend_Element but I think this is another bug issue. Thanks,&amp;nbsp; cob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 16:09:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247395#M19148</guid>
      <dc:creator>CharlesBailey3</dc:creator>
      <dc:date>2018-06-14T16:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy.mp to select layout elements?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247396#M19149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My read is that when 'select' an element of any kind by name or index number... it is selected/active/??? and you should be able to work with it.&amp;nbsp; It may be that the mp module expects to be used to modify existing things, and your case of adding to the legend element would probably necessitate going back to the beginning with adding a layer and symbolizing it from scratch... I don't use it enough.. most of my mapping uses a template structure&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 16:37:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247396#M19149</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-06-14T16:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy.mp to select layout elements?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247397#M19150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is ever selected, it doesn't stay in&amp;nbsp;the selected state once the script completes. I was looking for a way to set this state in the code - I would think 'select' would be something that would apply to existing objects(?) As far as the Legend goes, it's pretty flaky. If you programmatically set the map frame, it works in the properties but does not add any layers from the frame to the existing legend. But if you add just one layer to the legend manually (drag it in the TOC) when the frame is set to None, then when you set&amp;nbsp;the map frame all of the layers in the&amp;nbsp;frame are added. I'm just trying to persist the settings of these elements with the user's content. There may be a better way but I haven't found it (?) Thanks Dan - cob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 17:01:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mp-to-select-layout-elements/m-p/247397#M19150</guid>
      <dc:creator>CharlesBailey3</dc:creator>
      <dc:date>2018-06-14T17:01:02Z</dc:date>
    </item>
  </channel>
</rss>

