<?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: ModelBuilder...refresh map in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-refresh-map/m-p/882303#M573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jonathan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was hoping for something quick and easy (already available in ModelBuilder), but I know it's rarely that easy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Mar 2013 13:14:42 GMT</pubDate>
    <dc:creator>WesKing</dc:creator>
    <dc:date>2013-03-19T13:14:42Z</dc:date>
    <item>
      <title>ModelBuilder...refresh map</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-refresh-map/m-p/882301#M571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Apologies if this is not the correct forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a model I've used 'Select Layer By Location' that has 3 parameters for the user to enter.&amp;nbsp; It is selecting features in a feature class that is in a Mapdocument.&amp;nbsp; It works great except the newly selected features do not show up in the .mxd as being selected (highlighted).&amp;nbsp; If you hit the refresh button then they appear as being selected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to include something in the model that causes an automatic refresh of the map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 21:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-refresh-map/m-p/882301#M571</guid>
      <dc:creator>WesKing</dc:creator>
      <dc:date>2013-03-14T21:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder...refresh map</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-refresh-map/m-p/882302#M572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've never come across a way to refresh the Table of Contents using ModelBuilder, but you could look into using Python and the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/RefreshActiveView/018v0000006s000000/"&gt;RefreshActiveView&lt;/A&gt;&lt;SPAN&gt; function.&amp;nbsp; You could add the result of the Select By Location, but that'll just add a new layer with those selected features, so you'll have duplicate layers in the Table of Contents.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 22:24:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-refresh-map/m-p/882302#M572</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2013-03-14T22:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder...refresh map</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-refresh-map/m-p/882303#M573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jonathan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was hoping for something quick and easy (already available in ModelBuilder), but I know it's rarely that easy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 13:14:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-refresh-map/m-p/882303#M573</guid>
      <dc:creator>WesKing</dc:creator>
      <dc:date>2013-03-19T13:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder...refresh map</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-refresh-map/m-p/882304#M574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Model Builder just add a 'Calculate Value' item to the model ( Insert -&amp;gt; Model Only Tools -&amp;gt; Calculate Value ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure this runs after all the parts of the model that affect map layers have completed by making one or more of them a precondition of the 'Calculate Value' item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open the 'Calculate Value' item and enter the Expression:&amp;nbsp; `arcpy.RefreshActiveView()`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result of this calculate value item will actually be meaningless, but it will refresh the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;General Note&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The 'Calculate Value' tool in Model Builder is designed for using a script (or single line of code) to calculate some value to be used elsewhere in the model.&lt;/P&gt;&lt;P&gt;But you can ignore its output, and it turns out that it's really handy for simply running snippets of Python code to do anything in a model that you can do with Python that can't be easily done with other tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 May 2019 23:16:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-refresh-map/m-p/882304#M574</guid>
      <dc:creator>TI</dc:creator>
      <dc:date>2019-05-12T23:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder...refresh map</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-refresh-map/m-p/1012409#M575</link>
      <description>&lt;P&gt;I would never have thought of this totally obscure method. Seems to work well for me. And the idea of using this to run oher snippets of code within a model is something I will have to look into. Thanks to TasmanianIrrigation from sunny Brisbane!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 11:12:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-refresh-map/m-p/1012409#M575</guid>
      <dc:creator>MarkFawkes</dc:creator>
      <dc:date>2020-12-28T11:12:44Z</dc:date>
    </item>
  </channel>
</rss>

