<?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: Link layers from two Data Frames? in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/link-layers-from-two-data-frames/m-p/647084#M7060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a combination of the following to build something in python:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/ListDataFrames/00s30000001p000000/"&gt;arcpy.mapping.ListDataFrames&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/ListLayers/00s30000002n000000/"&gt;arcpy.mapping.ListLayers&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to be able to identify your layers in each data frame (by name, description, etc). Once you have a reference to your layer you can turn it on/off using the visible property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that you would need something to trigger the update event when a layer is checked. You can access this event using ArcObjects &lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//00120000072z000000"&gt;ILayerEvents&lt;/A&gt; (.Net or Java) but I am not aware of a way to do it using python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Feb 2015 11:48:15 GMT</pubDate>
    <dc:creator>OwenEarley</dc:creator>
    <dc:date>2015-02-11T11:48:15Z</dc:date>
    <item>
      <title>Link layers from two Data Frames?</title>
      <link>https://community.esri.com/t5/mapping-questions/link-layers-from-two-data-frames/m-p/647083#M7059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating a county-scale map with an inset map data frame of communities in the county, created with data driven pages so it can be scrolled through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also visualizing a variety of data, which the end user will have to toggle on and off to fully explore the map. Unfortunately, when the main county-scale map is interacted with, the layer visibility changes are not made on the community-scale inset map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does ArcMap have any functionality to achieve the desired: a link between the two dataframes which toggles the visibility of a layer as it's copy is toggled in another data frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not afraid to get my Python hands dirty, so if there is a hack I can achieve that can be then distributed to clients and function properly, I'm all ears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin Henry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 20:44:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/link-layers-from-two-data-frames/m-p/647083#M7059</guid>
      <dc:creator>KevinHenry1</dc:creator>
      <dc:date>2015-02-10T20:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Link layers from two Data Frames?</title>
      <link>https://community.esri.com/t5/mapping-questions/link-layers-from-two-data-frames/m-p/647084#M7060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a combination of the following to build something in python:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/ListDataFrames/00s30000001p000000/"&gt;arcpy.mapping.ListDataFrames&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/ListLayers/00s30000002n000000/"&gt;arcpy.mapping.ListLayers&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to be able to identify your layers in each data frame (by name, description, etc). Once you have a reference to your layer you can turn it on/off using the visible property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that you would need something to trigger the update event when a layer is checked. You can access this event using ArcObjects &lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//00120000072z000000"&gt;ILayerEvents&lt;/A&gt; (.Net or Java) but I am not aware of a way to do it using python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 11:48:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/link-layers-from-two-data-frames/m-p/647084#M7060</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2015-02-11T11:48:15Z</dc:date>
    </item>
  </channel>
</rss>

