<?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 Python Tool current project in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/python-tool-current-project/m-p/1234371#M62570</link>
    <description>&lt;P&gt;I have written a couple python tools in a python toolbox in ArcPro 2.9.&lt;/P&gt;&lt;P&gt;The tools I have written are make changes to all projects within given folder. During initial development, I used notebooks in arcpro and used the code:&lt;EM&gt;&lt;STRONG&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt; which worked. Once I converted over to an actual python tool/script, the code is changed to affect all projects, which also works (as long as I am out of an affected project).&lt;/P&gt;&lt;P&gt;So, right now I have to open an empty project (or at least one not within the targeted folder) to run the tool so that all projects within the targeted folder are affected. I would like to be able to open one of the projects within the folder and still have it affect it along with the others... is there a way to do this from the tool (not notebooks or python window)?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 23:55:38 GMT</pubDate>
    <dc:creator>CA_SC_-_EricBall__GISS_</dc:creator>
    <dc:date>2022-11-22T23:55:38Z</dc:date>
    <item>
      <title>Python Tool current project</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-tool-current-project/m-p/1234371#M62570</link>
      <description>&lt;P&gt;I have written a couple python tools in a python toolbox in ArcPro 2.9.&lt;/P&gt;&lt;P&gt;The tools I have written are make changes to all projects within given folder. During initial development, I used notebooks in arcpro and used the code:&lt;EM&gt;&lt;STRONG&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt; which worked. Once I converted over to an actual python tool/script, the code is changed to affect all projects, which also works (as long as I am out of an affected project).&lt;/P&gt;&lt;P&gt;So, right now I have to open an empty project (or at least one not within the targeted folder) to run the tool so that all projects within the targeted folder are affected. I would like to be able to open one of the projects within the folder and still have it affect it along with the others... is there a way to do this from the tool (not notebooks or python window)?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 23:55:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-tool-current-project/m-p/1234371#M62570</guid>
      <dc:creator>CA_SC_-_EricBall__GISS_</dc:creator>
      <dc:date>2022-11-22T23:55:38Z</dc:date>
    </item>
  </channel>
</rss>

