<?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: Python Geoprocessing syntax from ArcGIS Pro 2.x to 3.x in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-geoprocessing-syntax-from-arcgis-pro-2-x-to/m-p/1330958#M68716</link>
    <description>&lt;P&gt;&lt;STRONG&gt;arcpy.analysis.Clip&lt;/STRONG&gt; is the native Python function call, i.e. Clip is a function in the module analysis from the site package arcpy, it can be found in the file "Path://to/ArcGIS/ArcPy/arcpy/analysis.py"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arcpy.Clip_analysis&lt;/STRONG&gt; is the syntax you can use after you import a toolbox using &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/importtoolbox.htm" target="_blank" rel="noopener"&gt;ImportToolbox&lt;/A&gt;, which arcpy does automatically for the system tools.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both work in ArcMap and ArcGIS Pro.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 08:24:38 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2023-09-21T08:24:38Z</dc:date>
    <item>
      <title>Python Geoprocessing syntax from ArcGIS Pro 2.x to 3.x</title>
      <link>https://community.esri.com/t5/python-questions/python-geoprocessing-syntax-from-arcgis-pro-2-x-to/m-p/1330900#M68714</link>
      <description>&lt;P&gt;As we migrate from ArcGIS Pro 2.x to ArcGIS Pro 3.x, we a looking at Python Code.&lt;BR /&gt;I note in Pro 2.x the syntax in the documentation code samples for say Clip Analysis in the code samples is&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Clip_analysis&lt;/P&gt;&lt;P&gt;Yet in pro 3.x it has switched to&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.analysis.Clip&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Can anyone advise when this changed?&lt;/P&gt;&lt;P&gt;Do both work in Pro 3.x?&lt;/P&gt;&lt;P&gt;With the new syntax, I note my PyCharm code intelligence is now stuffed as well.&amp;nbsp; I think this is because the code document has not been changed.&amp;nbsp; ie this is in the analysis.py file in ArcPy&lt;/P&gt;&lt;P&gt;# Extract toolset&lt;/P&gt;&lt;P&gt;@gptooldoc('Clip_analysis', None)&lt;/P&gt;&lt;P&gt;def Clip(in_features=None, clip_features=None, out_feature_class=None, cluster_tolerance=None):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Clip_analysis(in_features, clip_features, out_feature_class, {cluster_tolerance})&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 01:13:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-geoprocessing-syntax-from-arcgis-pro-2-x-to/m-p/1330900#M68714</guid>
      <dc:creator>MarkChilcott</dc:creator>
      <dc:date>2023-09-21T01:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Python Geoprocessing syntax from ArcGIS Pro 2.x to 3.x</title>
      <link>https://community.esri.com/t5/python-questions/python-geoprocessing-syntax-from-arcgis-pro-2-x-to/m-p/1330958#M68716</link>
      <description>&lt;P&gt;&lt;STRONG&gt;arcpy.analysis.Clip&lt;/STRONG&gt; is the native Python function call, i.e. Clip is a function in the module analysis from the site package arcpy, it can be found in the file "Path://to/ArcGIS/ArcPy/arcpy/analysis.py"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arcpy.Clip_analysis&lt;/STRONG&gt; is the syntax you can use after you import a toolbox using &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/importtoolbox.htm" target="_blank" rel="noopener"&gt;ImportToolbox&lt;/A&gt;, which arcpy does automatically for the system tools.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both work in ArcMap and ArcGIS Pro.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 08:24:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-geoprocessing-syntax-from-arcgis-pro-2-x-to/m-p/1330958#M68716</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-09-21T08:24:38Z</dc:date>
    </item>
  </channel>
</rss>

