<?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: ArcGIS Pro | ArcPy - How To Refresh the Map in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406329#M18091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Dan's first comment is getting to the root of your issue.&amp;nbsp; Just so I understand, you want to run this as a stand-alone script and not in the currently open ArcGIS Pro session?&amp;nbsp; If the former, do you want to modify the display of an APRX file while another user has it open?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, recreating the insert cursor every time within your loop will be a performance killer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2017 13:33:31 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2017-02-17T13:33:31Z</dc:date>
    <item>
      <title>ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406325#M18087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ArcGIS Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Python script that simply add points to a feature class in file GDB every second. The corresponding layer is in an ArcGIS Pro map, and I would like to visualise the point as their are being added, without manually interacting with the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running the script as a standalone script, panning or zooming will force the map to refresh and display points newly added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I programatically refresh the map to see the update displayed dynamically, without the need for user interaction ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Windows 8.1&lt;/LI&gt;&lt;LI&gt;ArcGIS Pro 1.4.1&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; time&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; random&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; datetime

aprx &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'D:\workspaces\sandbox\sandbox\sandbox.aprx'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'SHAPE@XY'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'DATETIME'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
iteration &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;
second &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# bouding box: east, west, south, north (define your own extent)&lt;/SPAN&gt;
boundingBox &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;x1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;x2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y2&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

fc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"D:\workspace\mygdb.gdb\Points"&lt;/SPAN&gt;


&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;iteration&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; random&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;uniform&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;boundingBox&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;boundingBox&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;y &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; random&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;uniform&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;boundingBox&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;boundingBox&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;xy &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cursor &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;InsertCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fields&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cursor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;insertRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;xy&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; datetime&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;datetime&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;now&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="keyword token"&gt;del&lt;/SPAN&gt; cursor
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Done! ... i='&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;time&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sleep&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;second&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;


&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'QUIT'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:29:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406325#M18087</guid>
      <dc:creator>TD</dc:creator>
      <dc:date>2021-12-11T18:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406326#M18088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/migratingfrom10xarcpymapping.htm"&gt;help topic on changes&lt;/A&gt; if you are using arcpy.mp (formerly arcpy.mapping) changes are supposed to reflected automatically only if 'Current' is being used. Also the changes mean that camera, layout and map replace the old... and I can't find any refresh-anything in the &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/alphabeticallistofclasses.htm"&gt;class list&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 03:29:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406326#M18088</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-17T03:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406327#M18089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;The problem with the Python window is that the map refreshes only once the script has completed. Even manually interacting with the map does not refresh it. I'd like to update the display while&amp;nbsp;the script is running.&lt;/P&gt;&lt;P&gt;And I'd like to be able to run the script as a standalone script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 06:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406327#M18089</guid>
      <dc:creator>TD</dc:creator>
      <dc:date>2017-02-17T06:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406328#M18090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/functions/alphabetical-list-of-arcpy-functions.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/functions/alphabetical-list-of-arcpy-functions.htm"&gt;Alphabetical list of ArcPy functions—ArcPy Functions | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; and&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/classes/alphabetical-list-of-arcpy-classes.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/classes/alphabetical-list-of-arcpy-classes.htm"&gt;Alphabetical list of ArcPy classes—ArcPy Classes | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; and&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/functions/alphabetical-list-of-arcpy-functions.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/functions/alphabetical-list-of-arcpy-functions.htm"&gt;Alphabetical list of ArcPy functions—ArcPy Functions | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; is pretty well all you have&lt;/P&gt;&lt;P&gt;The only thing I can think of is if you had one script call another within a loop rather than have the whole process in one. &amp;nbsp;I can't remember if passing back a value from the called script would trigger something in arcmap or PRO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 09:12:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406328#M18090</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-17T09:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406329#M18091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Dan's first comment is getting to the root of your issue.&amp;nbsp; Just so I understand, you want to run this as a stand-alone script and not in the currently open ArcGIS Pro session?&amp;nbsp; If the former, do you want to modify the display of an APRX file while another user has it open?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, recreating the insert cursor every time within your loop will be a performance killer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 13:33:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406329#M18091</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-02-17T13:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406330#M18092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me rephrase the expected workflow.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I'd like to open an ArcGIS Pro project and visualise a layer of a point feature class.&lt;/LI&gt;&lt;LI&gt;While viewing this layer, I would like to run a script that is going to create additional points in this feature class.&lt;/LI&gt;&lt;LI&gt;Everytime a new point is added by the script to the feature class, I want the display of the layer or map of the ArcGIS Pro project to refresh in oder to visualise the new point.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It doesn't matter if the script runs as standalone or in the Python Pro window, I was just describing what I have tested.&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 06:42:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406330#M18092</guid>
      <dc:creator>TD</dc:creator>
      <dc:date>2017-02-20T06:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406331#M18093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, since 'Current' project (*aprx) doesn't require a refresh of the active map according to the help then either the help is somewhat misleading or the script isn't finishing.&amp;nbsp; As an final idea, perhaps attaching the script to a tool in arctoolbox wil enable the expected behaviour, I am not convinced that an external script is going to perform the task properly or at all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 10:49:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406331#M18093</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-20T10:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406332#M18094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From&amp;nbsp;the &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/migratingfrom10xarcpymapping.htm"&gt;Migrating from arcpy.mapping to ArcGIS Pro &lt;/A&gt;documentation:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;When using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="-webkit-font-smoothing: antialiased; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold; color: #4d4d4d; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;CURRENT&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;keyword in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="-webkit-font-smoothing: antialiased; font-weight: bold; color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;Python&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;window with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="-webkit-font-smoothing: antialiased; color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;ArcGIS Desktop&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;, you sometimes had to call&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="-webkit-font-smoothing: antialiased; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-weight: bold; color: #4d4d4d; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;refreshActiveView&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to force a screen refresh. This is no longer the case with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="-webkit-font-smoothing: antialiased; color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;ArcGIS Pro&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;. All arcpy.mp API changes will directly update the application.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It is the last sentence that I believe is relevant here.&amp;nbsp; I may be interpreting the documentation too literally, but in your case you are not making &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.mp&lt;/SPAN&gt; API changes, you are adding data to feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without an explicit refresh call or a zoom or pan action, ArcGIS Pro would constantly have to be polling the data source to see if any data has changed.&amp;nbsp; Doing so introduces several questions and challenges.&amp;nbsp; For example, how frequently do you do the polling, every second, half-second?&amp;nbsp; What kind of additional and extraneous network or disk traffic is created by the constant polling?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you were changing &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;arcpy.mp&lt;/SPAN&gt; elements (symbology, map frame properties, changing data source for layer), I am sure the changes would happen automagically.&amp;nbsp; In this case, you are updating data in a data source, and I don't believe that is covered by the automatic refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In terms of refresh, I am not sure if there is some automatic refresh at a designated time interval, e.g., every 5 minutes the screen refreshes no matter what.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 19:00:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406332#M18094</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-02-21T19:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406333#M18095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have this problem, but I only need to refresh the scene at the end of my python script. The script adds records into a feature class, and then I want to see those on screen when the script is done.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 18:28:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406333#M18095</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-08-14T18:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406334#M18096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I struggle with the same problem, having a script tool which inserts new points to an existing feature class in ArcSDE using an Insert Cursor.&lt;BR /&gt;The new points do not automatically appear on the map.&lt;BR /&gt;&lt;BR /&gt;One interactive workaround for me is to choose "List by data source", selecting the ArcSDE connection and on the Versioning tab click "Refresh". This is not very user friendly though.&lt;BR /&gt;&lt;BR /&gt;Another workaround is to "change" the version of the Feature layer to the same version it is in (see code below).&lt;/P&gt;&lt;P&gt;This works, but is way too slow (30 sec).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def refreshMap(layerName):&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;p = arcpy.mp.ArcGISProject('current')&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;m = p.listMaps("MainMap")[0]&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;for l in m.listLayers("*"):&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if l.longName == layerName:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;conProp = l.connectionProperties&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;arcpy.ChangeVersion_management(l, 'TRANSACTIONAL', conProp['connection_info']['version'])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give us a way to refresh the map!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 08:02:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406334#M18096</guid>
      <dc:creator>KjetilSverdrup-Thygeson</dc:creator>
      <dc:date>2018-01-04T08:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406335#M18097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also having this problem.&amp;nbsp; I have have a script that allows the user to select an Address from our Property layer, and it zooms to this property, but.... It only works if I close and open the map up again.&amp;nbsp; I would like it to automatically zoom to the property, which it doesn't.&amp;nbsp; Code below.&amp;nbsp; I would like the have Refresh object at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import arcpy,sys,string,os&lt;/P&gt;&lt;P&gt;dbconn = r"S:\GIS\Scripts\Python\Darryl_Working\Zoom_Address_Pro\Data.gdb"&lt;/P&gt;&lt;P&gt;inputlayer = dbconn + "\\GIS_Property"&lt;/P&gt;&lt;P&gt;inputaddress = arcpy.GetParameter(0)&lt;BR /&gt;mapname = arcpy.GetParameter(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cur,row = None, None&lt;BR /&gt;cur = arcpy.SearchCursor(inputlayer)&lt;BR /&gt;for row in cur:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if str(row.ADDRESS).upper() == inputaddress.upper():&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ex = row.SHAPE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")&lt;BR /&gt;map = aprx.listMaps(mapname)[0]&lt;/P&gt;&lt;P&gt;map.defaultCamera.setExtent(ex.extent)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 15:36:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406335#M18097</guid>
      <dc:creator>DarrylKlassen1</dc:creator>
      <dc:date>2018-08-30T15:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406336#M18098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add a tool to a toolbox, associate the parameters with it, it might do the query and when it is done, maybe it will zoom to it. &amp;nbsp;&lt;/P&gt;&lt;P&gt;A standalone script isn't going to do any zooming I am afraid, but a script in a toolbox just might behave as we want it to&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 15:40:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406336#M18098</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-08-30T15:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406337#M18099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I should have mentioned this.&amp;nbsp; This stand-alone script is attached to a toolbox with a combo box that has a list of all the addresses in it.&amp;nbsp; When I execute the tool, it works fine, but doesn't refresh the extent unless I close and open the map again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 15:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406337#M18099</guid>
      <dc:creator>DarrylKlassen1</dc:creator>
      <dc:date>2018-08-30T15:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406338#M18100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm camera uses a derived property&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Extent is not a direct property of the &lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; color: #4c4c4c; font-family: &amp;amp;quot; consolas&amp;amp;quot;,&amp;amp;quot;andale mono&amp;amp;quot;,&amp;amp;quot;lucida console&amp;amp;quot;,&amp;amp;quot;monaco&amp;amp;quot;,monospace; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Camera&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; object because it is not an explicit property but rather a derived property. Camera positions do not store extent properties, but from an &lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; color: #4c4c4c; font-family: &amp;amp;quot; consolas&amp;amp;quot;,&amp;amp;quot;andale mono&amp;amp;quot;,&amp;amp;quot;lucida console&amp;amp;quot;,&amp;amp;quot;monaco&amp;amp;quot;,monospace; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;X, Y&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; location and a &lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; color: #4c4c4c; font-family: &amp;amp;quot; consolas&amp;amp;quot;,&amp;amp;quot;andale mono&amp;amp;quot;,&amp;amp;quot;lucida console&amp;amp;quot;,&amp;amp;quot;monaco&amp;amp;quot;,monospace; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;scale&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;, extent is derived. The &lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; color: #4c4c4c; font-family: &amp;amp;quot; consolas&amp;amp;quot;,&amp;amp;quot;andale mono&amp;amp;quot;,&amp;amp;quot;lucida console&amp;amp;quot;,&amp;amp;quot;monaco&amp;amp;quot;,monospace; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;getExtent&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; method will return a derived extent. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/camera-class.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/mapping/camera-class.htm"&gt;Camera—ArcPy | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;have you tried messing with the extent object?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/output-extent.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/output-extent.htm"&gt;Extent (Environment setting)—Geoprocessing | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I don't know if setting the extent to the selection will be enough for the camera to read it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I would be much simpler if they put a refresh option on the tool dialog if desired&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;And doesn't the refresh button on the map work? or do you still have to close it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 17px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;IMG alt="" class="image-1 jive-image" height="195" src="https://community.esri.com/legacyfs/online/420823_refresh_map.png" width="550" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 16:50:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406338#M18100</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-08-30T16:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406339#M18101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clicking the refresh button &lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/420836_pastedImage_1.png" /&gt;doesn't work, you have to actually close the map and open it again.&amp;nbsp; The arcpy.env.extent returns a NoneType value, and when I set it to an extent, nothing happens.&amp;nbsp; Will keep trying this route.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 17:06:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406339#M18101</guid>
      <dc:creator>DarrylKlassen1</dc:creator>
      <dc:date>2018-08-30T17:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406340#M18102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;set it before the work is processed, then set it after the selection and before the camera.&amp;nbsp; camera is probably reading the None thing since it isn't set&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 17:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406340#M18102</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-08-30T17:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406341#M18103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't even manually (using the Python window) change the extent of the map. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 17:36:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406341#M18103</guid>
      <dc:creator>DarrylKlassen1</dc:creator>
      <dc:date>2018-08-30T17:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406342#M18104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unlike ArcMap you can't set the extent directly (as Dan quoted above):&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Extent is not a direct property of the Camera object&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 03:14:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406342#M18104</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-05-02T03:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406343#M18105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why this is marked as "assumed answered". I don't see a solution anywhere in here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2020 17:15:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/406343#M18105</guid>
      <dc:creator>NoelPeterson</dc:creator>
      <dc:date>2020-08-27T17:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro | ArcPy - How To Refresh the Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/1072840#M42545</link>
      <description>&lt;P&gt;I ran into a similar problem where a Dynamic Text Element in a Layout needed to be refreshed during a Python script.&amp;nbsp; Basically the table values that fed the dynamic text were updated in a loop before exporting an image of the map.&amp;nbsp; The Text Element would not update after the table value changed so every image exported from the loop would should the initial value.&amp;nbsp; I solved this by turning on and off the text element after the table value was changed and before the image was exported in the loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps that is a workaround here - turn the element on and off to induce a refresh.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 22:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-arcpy-how-to-refresh-the-map/m-p/1072840#M42545</guid>
      <dc:creator>JeffHiggins</dc:creator>
      <dc:date>2021-06-25T22:20:20Z</dc:date>
    </item>
  </channel>
</rss>

