<?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: How to refresh a database/map with python in ArcGIS Pro in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-refresh-a-database-map-with-python-in/m-p/663605#M51559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So are you saying that this is not possible in Pro with python?&amp;nbsp; I tried to test it keeping it simple of using the CURRENT, creating a feature class in the default database and then try adding it.&amp;nbsp; It always fails with the message being that the new feature class does not exists.&amp;nbsp; &amp;nbsp;If I do the exact same lines one by one in Pro python window it will work fine.&amp;nbsp; &amp;nbsp;But doing this in a script or a python toolbox script tool it fails.&amp;nbsp; &amp;nbsp;So this is just not possible in Pro?&amp;nbsp; This is a straight forward work flow, and it is not an option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2019 21:12:26 GMT</pubDate>
    <dc:creator>MatthewDriscoll</dc:creator>
    <dc:date>2019-01-15T21:12:26Z</dc:date>
    <item>
      <title>How to refresh a database/map with python in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/how-to-refresh-a-database-map-with-python-in/m-p/663603#M51557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to refresh a database in a python script in Pro?&amp;nbsp; I have a script where I create a new feature class in the default database and want to add that data to the map at the end of the script.&amp;nbsp; &amp;nbsp;It seems it does not recognize this new feature class until after the script is complete.&amp;nbsp; I am wanting to use addDataFromPath.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 19:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-refresh-a-database-map-with-python-in/m-p/663603#M51557</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2019-01-15T19:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a database/map with python in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/how-to-refresh-a-database-map-with-python-in/m-p/663604#M51558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is the case. you used to call an arcpy function to refreshActiveView when you were running scripts with the "CURRENT" project (ie a project that was open when the script was running) So you could do this mid stream.&amp;nbsp; When the script completes now, the active view is updated (and that has been my experience too)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/refreshactiveview.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/refreshactiveview.htm"&gt;RefreshActiveView—Help | ArcGIS Desktop&lt;/A&gt; ArcMap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/migratingfrom10xarcpymapping.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/mapping/migratingfrom10xarcpymapping.htm"&gt;Migrating from arcpy.mapping to ArcGIS Pro—ArcPy | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/functions/alphabetical-list-of-arcpy-functions.htm" title="http://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; in ArcGISPro&lt;/P&gt;&lt;P&gt;show the list of currently available functions alphabetically&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 21:01:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-refresh-a-database-map-with-python-in/m-p/663604#M51558</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-01-15T21:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a database/map with python in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/how-to-refresh-a-database-map-with-python-in/m-p/663605#M51559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So are you saying that this is not possible in Pro with python?&amp;nbsp; I tried to test it keeping it simple of using the CURRENT, creating a feature class in the default database and then try adding it.&amp;nbsp; It always fails with the message being that the new feature class does not exists.&amp;nbsp; &amp;nbsp;If I do the exact same lines one by one in Pro python window it will work fine.&amp;nbsp; &amp;nbsp;But doing this in a script or a python toolbox script tool it fails.&amp;nbsp; &amp;nbsp;So this is just not possible in Pro?&amp;nbsp; This is a straight forward work flow, and it is not an option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 21:12:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-refresh-a-database-map-with-python-in/m-p/663605#M51559</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2019-01-15T21:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a database/map with python in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/how-to-refresh-a-database-map-with-python-in/m-p/663606#M51560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Pro python window is a different beast.&lt;/P&gt;&lt;P&gt;Anyway I am on Pro beta 2, and ArcGIS Pro 2.3 is coming&amp;nbsp; on Jan 18...&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think add results to "display"/"map"/"Whatever" was just added back in&lt;/P&gt;&lt;P&gt;So I can't confirm your problem, since it doesn't exist for me now.&lt;/P&gt;&lt;P&gt;There is a recent video showing "What's new in Pro 2.3" that shows some of the other cool stuff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" height="437" src="https://community.esri.com/legacyfs/online/433292_add_results_to_map.png" width="686" /&gt;&lt;/P&gt;&lt;P&gt;So you can wait and test then... or keep trying to find a workaround that doesn't entail creating a featureclass, then a featurelayer on disc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 21:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-refresh-a-database-map-with-python-in/m-p/663606#M51560</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-01-15T21:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh a database/map with python in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-questions/how-to-refresh-a-database-map-with-python-in/m-p/663607#M51561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan.&amp;nbsp; &amp;nbsp;I think I will try to create a add-in to run the script tool, then add the layer using the add-in (if possible) after the scripts runs&amp;nbsp;as a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp; &amp;nbsp;Using an add-in ended up being a satisfactory work around for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 21:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-refresh-a-database-map-with-python-in/m-p/663607#M51561</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2019-01-15T21:44:24Z</dc:date>
    </item>
  </channel>
</rss>

