<?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: Accessing Custom Tool From Within Released Add-In in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/accessing-custom-tool-from-within-released-add-in/m-p/1303147#M9980</link>
    <description>&lt;P&gt;This appears to work for both Debug and Release:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string here = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 26 Jun 2023 19:38:16 GMT</pubDate>
    <dc:creator>RussellSuter</dc:creator>
    <dc:date>2023-06-26T19:38:16Z</dc:date>
    <item>
      <title>Accessing Custom Tool From Within Released Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/accessing-custom-tool-from-within-released-add-in/m-p/1302192#M9966</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;I have managed to create an add-in for ArcGIS Pro 3.1 that I'm ready to deploy to my user base.&amp;nbsp; My add-in calls a python GeoProcessing tool which is in my AddIn.esriAddinX file.&amp;nbsp; The problem is my code can't find it.&amp;nbsp; I ran across something awhile back that suggested I do something like this:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string here = System.IO.Directory.GetCurrentDirectory();
string script = System.IO.Path.Combine(here, @"Toolboxes\Tools.atbx\BuildGeoPackage");&lt;/LI-CODE&gt;&lt;P&gt;This worked great while building and running the Debug configuration.&amp;nbsp; Now though, when building for Release, it doesn't work.&amp;nbsp; The "here" string references the user's Desktop folder but the add-in is in Documents\ArcGIS\AddIns\ArcGISPro\{uuid}\AddIn.esriAddinX.&lt;/P&gt;&lt;P&gt;How do I get the actual install folder and then once there how do I peek into the .esriAddinX file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 19:22:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/accessing-custom-tool-from-within-released-add-in/m-p/1302192#M9966</guid>
      <dc:creator>RussellSuter</dc:creator>
      <dc:date>2023-06-22T19:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Custom Tool From Within Released Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/accessing-custom-tool-from-within-released-add-in/m-p/1302206#M9967</link>
      <description>Suggest you place the code on a network share drive, thus you don't have to deploy the python code to every machine. Then the path would be \\myserver\mypythongcode\thecode.py&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jun 2023 20:01:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/accessing-custom-tool-from-within-released-add-in/m-p/1302206#M9967</guid>
      <dc:creator>RichardDaniels</dc:creator>
      <dc:date>2023-06-22T20:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Custom Tool From Within Released Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/accessing-custom-tool-from-within-released-add-in/m-p/1302236#M9968</link>
      <description>&lt;P&gt;That is a nice idea but, for a couple of reasons I won't go into here, I can't do that.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 20:47:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/accessing-custom-tool-from-within-released-add-in/m-p/1302236#M9968</guid>
      <dc:creator>RussellSuter</dc:creator>
      <dc:date>2023-06-22T20:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Custom Tool From Within Released Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/accessing-custom-tool-from-within-released-add-in/m-p/1303147#M9980</link>
      <description>&lt;P&gt;This appears to work for both Debug and Release:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string here = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 26 Jun 2023 19:38:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/accessing-custom-tool-from-within-released-add-in/m-p/1303147#M9980</guid>
      <dc:creator>RussellSuter</dc:creator>
      <dc:date>2023-06-26T19:38:16Z</dc:date>
    </item>
  </channel>
</rss>

