<?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: Best practices for sharing template including Python toolbox in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/best-practices-for-sharing-template-including/m-p/1054499#M40589</link>
    <description>&lt;P&gt;Update:&amp;nbsp; Talked the problem over with some Esri folks.&amp;nbsp; As a result I am going to explore the use of geoprocessing packages (.&lt;SPAN&gt;gpkx)&amp;nbsp;&lt;/SPAN&gt;rather than project templates (.aptx).&amp;nbsp; I will come back to this post to update.&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 00:43:18 GMT</pubDate>
    <dc:creator>RyanDavis1</dc:creator>
    <dc:date>2021-05-05T00:43:18Z</dc:date>
    <item>
      <title>Best practices for sharing template including Python toolbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/best-practices-for-sharing-template-including/m-p/1051440#M40255</link>
      <description>&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;Can anyone provide some guidance on sharing project templates?&amp;nbsp; I'm attempting to find best practices about how to properly share an .aptx template with colleagues.&amp;nbsp; The main pieces of the template are a Python toolbox, several layouts, and SDE connections.&lt;/P&gt;&lt;P&gt;Yes, I have already read both&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/projects/create-your-own-project-template.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/projects/create-your-own-project-template.htm&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/package-project.htm," target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/package-project.htm,&lt;/A&gt;&amp;nbsp;but perhaps I'm missing something obvious.&lt;/P&gt;&lt;P&gt;Background:&amp;nbsp; We are attempting to convert an internal tool from ArcMap to ArcGIS Pro.&amp;nbsp; The tool relies on Python scripts to generate a series of map PDFs.&amp;nbsp; We have successfully rewritten the scripts to use Python3 and arcpy.mp and converted .mxds to .pagxs.&amp;nbsp; Everything runs fine from the development .aprx.&amp;nbsp; That is, all of the PDFs are generated as desired.&amp;nbsp; I'm now attempting to package up a template .aptx, but I quickly run into errors when I run the Python tool.&amp;nbsp; The errors are not all that informative, and troubleshooting from the aptx-generated project is cumbersome.&amp;nbsp; I'm currently conjecturing that the issues might be related to file paths as the .aptx seems to add some lines of code and reorganize file locations in the project folder.&amp;nbsp; I'll add that the source files are saved on network folders, but it doesn't seem to make much difference if I use relative paths or absolute paths.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 18:28:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/best-practices-for-sharing-template-including/m-p/1051440#M40255</guid>
      <dc:creator>RyanDavis1</dc:creator>
      <dc:date>2021-04-26T18:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for sharing template including Python toolbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/best-practices-for-sharing-template-including/m-p/1054499#M40589</link>
      <description>&lt;P&gt;Update:&amp;nbsp; Talked the problem over with some Esri folks.&amp;nbsp; As a result I am going to explore the use of geoprocessing packages (.&lt;SPAN&gt;gpkx)&amp;nbsp;&lt;/SPAN&gt;rather than project templates (.aptx).&amp;nbsp; I will come back to this post to update.&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 00:43:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/best-practices-for-sharing-template-including/m-p/1054499#M40589</guid>
      <dc:creator>RyanDavis1</dc:creator>
      <dc:date>2021-05-05T00:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for sharing template including Python toolbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/best-practices-for-sharing-template-including/m-p/1241372#M63441</link>
      <description>&lt;P&gt;Ryan--I just came across your entry.&amp;nbsp; We have scripts we're trying to share via a template as well and the ESRI path changes cause the scripts to fail.&amp;nbsp; Did you end up going with the geoprocessing package instead?&amp;nbsp; Thanks, Silas&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 21:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/best-practices-for-sharing-template-including/m-p/1241372#M63441</guid>
      <dc:creator>SilasMathes</dc:creator>
      <dc:date>2022-12-14T21:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Best practices for sharing template including Python toolbox</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/best-practices-for-sharing-template-including/m-p/1242935#M63665</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/644250"&gt;@SilasMathes&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;No, after some exploring I found the .aptx less than ideal for our purposes. It's been long enough that I don't remember the exact issues now.&lt;/P&gt;&lt;P&gt;We ended up using a Python toolbox (.pyt) with supporting files (.py, .pagx, SDE connections, .lyrx, etc.) contained in a directory in the same folder as the .pyt. It generally works well, but &lt;A href="https://community.esri.com/t5/geoprocessing-questions/how-to-delete-geoprocessing-cache-in-arcgis-pro/m-p/1182032/highlight/true#M26364" target="_blank" rel="noopener"&gt;development hasn't been without it's headaches&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 14:23:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/best-practices-for-sharing-template-including/m-p/1242935#M63665</guid>
      <dc:creator>RyanDavis1</dc:creator>
      <dc:date>2022-12-21T14:23:04Z</dc:date>
    </item>
  </channel>
</rss>

