<?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: Plotting shapefiles from gdb to an aprx file in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/plotting-shapefiles-from-gdb-to-an-aprx-file/m-p/1488223#M73494</link>
    <description>&lt;P&gt;I didn't test this, but this is the general idea:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;shapefile_path = r"C:\PATH\Shapefile.shp"
aprx_list = [r"C:\PATH\First.aprx", r"C:\PATH\Second.aprx"]
import arcpy
for aprx_path in aprx_list:
    p = arcpy.mp.ArcGISProject(aprx_path)
    m = p.listMaps()[0]  # assumes data to be added to first map listed
    m.addDataFromPath(shapefile_path)‍‍‍‍‍
    p.save()&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 10 Jun 2024 13:17:12 GMT</pubDate>
    <dc:creator>BBowers_napacounty</dc:creator>
    <dc:date>2024-06-10T13:17:12Z</dc:date>
    <item>
      <title>Plotting shapefiles from gdb to an aprx file</title>
      <link>https://community.esri.com/t5/python-questions/plotting-shapefiles-from-gdb-to-an-aprx-file/m-p/1487367#M73493</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a script and I am stuck at the stage of plotting the&amp;nbsp;shapefiles from gdb's to an existing 2 different aprx files.&lt;/P&gt;&lt;P&gt;I need to run the code from Pyscripter not from the ArcGIS Pro directly as there will be 2 aprx files.&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 17:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/plotting-shapefiles-from-gdb-to-an-aprx-file/m-p/1487367#M73493</guid>
      <dc:creator>HusamOqer</dc:creator>
      <dc:date>2024-06-07T17:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting shapefiles from gdb to an aprx file</title>
      <link>https://community.esri.com/t5/python-questions/plotting-shapefiles-from-gdb-to-an-aprx-file/m-p/1488223#M73494</link>
      <description>&lt;P&gt;I didn't test this, but this is the general idea:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;shapefile_path = r"C:\PATH\Shapefile.shp"
aprx_list = [r"C:\PATH\First.aprx", r"C:\PATH\Second.aprx"]
import arcpy
for aprx_path in aprx_list:
    p = arcpy.mp.ArcGISProject(aprx_path)
    m = p.listMaps()[0]  # assumes data to be added to first map listed
    m.addDataFromPath(shapefile_path)‍‍‍‍‍
    p.save()&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 10 Jun 2024 13:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/plotting-shapefiles-from-gdb-to-an-aprx-file/m-p/1488223#M73494</guid>
      <dc:creator>BBowers_napacounty</dc:creator>
      <dc:date>2024-06-10T13:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting shapefiles from gdb to an aprx file</title>
      <link>https://community.esri.com/t5/python-questions/plotting-shapefiles-from-gdb-to-an-aprx-file/m-p/1495087#M73495</link>
      <description>&lt;P&gt;Thank you so much I just tried it and it worked!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 20:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/plotting-shapefiles-from-gdb-to-an-aprx-file/m-p/1495087#M73495</guid>
      <dc:creator>HusamOqer</dc:creator>
      <dc:date>2024-06-19T20:05:43Z</dc:date>
    </item>
  </channel>
</rss>

