<?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: Embedding my custom toolbox within my ArcPro Add-In  in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/732264#M163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charles,&lt;/P&gt;&lt;P&gt;The Add-in was loaded in my case, the screenshots from Windows Explorer were made with ArcGIS Pro active with the Add-In toolbar visible. I edited my answer, becauseI forgot to mention this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Nov 2020 10:04:27 GMT</pubDate>
    <dc:creator>JoëlHempenius3</dc:creator>
    <dc:date>2020-11-10T10:04:27Z</dc:date>
    <item>
      <title>Embedding my custom toolbox within my ArcPro Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/732260#M159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's my first time posting on here so I am sorry if I don't correctly format this question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been building an ArcPro Add-In and I wanted to embed a toolbox so that when I send the add-in to the client I am able to source the path to the toolbox and then open it from a ribbon button. I followed the suggestions in &lt;A _jive_internal="true" href="https://community.esri.com/thread/238640-embedding-toolboxes-in-arcgis-pro#comments"&gt;this question&lt;/A&gt;&amp;nbsp;but when I install the toolbox to ArcPro it doesn't create the toolbox folders within the AppData directory. When I check inside the add-inX file I can see the custom toolbox within there in the file structure shown in the previously asked question. I am wondering why when installing the Add-in does it not create the toolbox folder within appdata? I must be doing something wrong but I can't figure it out (I am fairly new to c# and add-in creation so that is probably where I am stumbling)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated and here are some images of the visual studio menu and the esri addinX file&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="439" src="https://community.esri.com/legacyfs/online/495891_pastedImage_2.png" width="262" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/495892_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2020 11:23:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/732260#M159</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-06-08T11:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding my custom toolbox within my ArcPro Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/732261#M160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;I had the same problem this morning with my Add-In and a custom .pyt toolbox with ArcGIS 2.5 and 2.6.&lt;/P&gt;&lt;P&gt;However, the toolbox was visible in the list of toolboxes in ArcGIS Pro. Which made me wonder where my script was placed.&lt;/P&gt;&lt;P&gt;I therefore added:&lt;BR /&gt;arcpy.AddMessage("Script {0} loaded".format(os.path.dirname(os.path.realpath(__file__))))&lt;/P&gt;&lt;P&gt;to my execute function in the toolbox and got the path of my script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="512740" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/512740_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;The structure of my VS project looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="512738" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/512738_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;When I go to my App data folder after deploying the Add-In and the Add-In is active in ArcGIS Pro I see this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="512739" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/512739_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;The Toolboxes folder is just like your description not visible. (note that Hidden Items should be visible)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I open the path from the Python Message I can go into the directory and I see the toolboxes subdirectory.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="512741" class="jive-image image-4" src="https://community.esri.com/legacyfs/online/512741_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;So maybe the directory is also there in your case but for unknown reasons not visible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/86730"&gt;Uma Harano&lt;/A&gt;‌, can you take a look at this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Nov 2020 10:36:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/732261#M160</guid>
      <dc:creator>JoëlHempenius3</dc:creator>
      <dc:date>2020-11-08T10:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding my custom toolbox within my ArcPro Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/732262#M161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The add-in must be loaded. (&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-content-and-image-resources#embedding-toolboxes"&gt;Step 10&lt;/A&gt;). The toolbox folder is not deployed on install.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Pro shuts down the folder &lt;STRONG&gt;remains&lt;/STRONG&gt;. _However_, if:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;either - the add-in is uninstalled&lt;/P&gt;&lt;P&gt;or - the add-in is not loaded the next time Pro starts (eg security settings were changed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the toolboxes folder will be deleted.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So even though the folder may be &lt;EM&gt;present&lt;/EM&gt; on the disk &lt;EM&gt;between&lt;/EM&gt; Pro sessions, if the accompanying add-in is &lt;STRONG&gt;not&lt;/STRONG&gt; loaded for the session then neither will its toolbox. This is mentioned under the "Note:" at the bottom of the previously referenced article.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect the confusion is arising from examining the assembly cache location of a previously loaded add-in where the toolboxes folder would be present (if it had an embedded toolbox) and comparing it with the assembly cache location of an add-in with an embedded toolbox that has not (been loaded).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2020 17:55:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/732262#M161</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2020-11-09T17:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding my custom toolbox within my ArcPro Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/732263#M162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/409446" target="_blank"&gt;Jack Bestard&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;I have this kind of usecase before and manage to solve it before.&lt;/P&gt;&lt;P&gt;Two&amp;nbsp;steps&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1: Change your toolbox file properties into&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Build Action : None&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Copy to Output Directory : Copy Always&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/512905_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2 : at C# coding part : how to retrieve the toolbox, in your project you store at "\toolboxes\toolboxes\InSar_Analyst.tbx"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the example code snippet for your toolbox file path is&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;string&lt;/SPAN&gt; assemblyfolderpath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IO&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetDirectoryName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Reflection&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Assembly&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetExecutingAssembly&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Location&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;string&lt;/SPAN&gt; fulltoolfilepath&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IO&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Combine&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;assemblyfolderpath&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;@"toolboxes\toolboxes\InSar_Analyst.tbx"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Than&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:15:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/732263#M162</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T07:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding my custom toolbox within my ArcPro Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/732264#M163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charles,&lt;/P&gt;&lt;P&gt;The Add-in was loaded in my case, the screenshots from Windows Explorer were made with ArcGIS Pro active with the Add-In toolbar visible. I edited my answer, becauseI forgot to mention this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2020 10:04:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/732264#M163</guid>
      <dc:creator>JoëlHempenius3</dc:creator>
      <dc:date>2020-11-10T10:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding my custom toolbox within my ArcPro Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/732265#M164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this Joel. This could be a bug then. Could you make a repro available to tech support so we can debug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2020 16:05:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/732265#M164</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2020-11-10T16:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding my custom toolbox within my ArcPro Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/1181152#M8243</link>
      <description>&lt;P&gt;Looks like the same issue is still happening. On my machine, the 'ToolBoxes' folder is not shown in the C:\Users\me\AppData\Local\ESRI\ArcGISPro\ folder, but I can get to it/ move in and out of it if I copy paste into windows explorer. The embedded toolbox doesn't show in the list of Toolboxes in Pro either. It only creates the guid folder if I add a folder with arcpy (a module) to the VS project. The python module I attempted to create following an esri example infected my other python environments and is causing AttributeError: module 'TbleCounts' has no attribute '__alias__' errors, regardless of python environment. During debugging its trying to load from the module from the {guid}\arcpy\__init__.py path.&amp;nbsp; This isn't going to work...&lt;/P&gt;&lt;P&gt;I need the custom toolbox (containing toolsets) embedded (along with a custom python env clone) to be packaged together in a single add-in, and preferably the toolbox listed under the Projects Toolbox folder.&amp;nbsp; I'm going to start another topic- According to the pro guide example, I should be able to embed a custom toolbox, but it is not working as it is described.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 16:31:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/1181152#M8243</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-06-08T16:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding my custom toolbox within my ArcPro Add-In</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/1325719#M10329</link>
      <description>&lt;P&gt;After trying to resolve this for a while i found that once you have embedded the toolbox you can access it like a system toolbox, i.e&amp;nbsp; &amp;lt;&lt;EM&gt;toolboxName&lt;/EM&gt;&amp;gt;.&amp;lt;&lt;EM&gt;toolName&lt;/EM&gt;&amp;gt; you dont need to know its full path&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 03:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/embedding-my-custom-toolbox-within-my-arcpro-add/m-p/1325719#M10329</guid>
      <dc:creator>AntDevEsk</dc:creator>
      <dc:date>2023-09-06T03:09:58Z</dc:date>
    </item>
  </channel>
</rss>

