<?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: How to access data located inside the installation location of an Add-in? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-data-located-inside-the-installation/m-p/493311#M13279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you embed the data in the project you can get the path to it in C# starting with System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location). this will give you the path to where the addin data is extracted on the machine within the AssemblyCache folder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2015 01:32:38 GMT</pubDate>
    <dc:creator>FreddieGibson</dc:creator>
    <dc:date>2015-03-30T01:32:38Z</dc:date>
    <item>
      <title>How to access data located inside the installation location of an Add-in?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-data-located-inside-the-installation/m-p/493310#M13278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating an Add-in for ArcMap 10.2 using C#.NET.&amp;nbsp; Documentation for Python Add-ins says you can access the data located inside the installation location using the __file__ built-in function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I access this location in .NET?&amp;nbsp; I know the location is "C:\Users\&amp;lt;username&amp;gt;\AppData\Local\ESRI\Desktop10.0\AssemblyCache" but that isn't very helpful since I don't know the username.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 18:43:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-data-located-inside-the-installation/m-p/493310#M13278</guid>
      <dc:creator>KeithPower1</dc:creator>
      <dc:date>2015-03-25T18:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to access data located inside the installation location of an Add-in?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-data-located-inside-the-installation/m-p/493311#M13279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you embed the data in the project you can get the path to it in C# starting with System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location). this will give you the path to where the addin data is extracted on the machine within the AssemblyCache folder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 01:32:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-data-located-inside-the-installation/m-p/493311#M13279</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-03-30T01:32:38Z</dc:date>
    </item>
  </channel>
</rss>

