<?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: Is there a new temp path behaviour in ArcGIS 10.1? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-a-new-temp-path-behaviour-in-arcgis-10-1/m-p/568456#M15317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Sean,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the workaround, this solves my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marianne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2012 09:28:12 GMT</pubDate>
    <dc:creator>Mariannevon_den_Driesch</dc:creator>
    <dc:date>2012-12-05T09:28:12Z</dc:date>
    <item>
      <title>Is there a new temp path behaviour in ArcGIS 10.1?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-a-new-temp-path-behaviour-in-arcgis-10-1/m-p/568453#M15314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;apparently since version 10.1 ArcMap creates its own temporary folder in the systems temp path. One folder for each ArMap-Process. The folders created look like this (where &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;...\Temp\&lt;/SPAN&gt;&lt;SPAN&gt; represents the systems temp path aka %temp%).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...\Temp\arcB\&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...\Temp\arc27\&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...\Temp\arc29\&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...\Temp\arc2B\&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This itself would be no problem, but it looks like ArcMap also changes the systems %temp% environment variable for its process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If an AddIn determines the temp path it no longer gets the systems path, but rather the temp-directory of the current ArcMap-process it was called from, eg. ...\Temp\&lt;/SPAN&gt;&lt;STRONG&gt;arc27\&lt;/STRONG&gt;&lt;SPAN&gt; instead of ...\Temp\&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;c#-Snippet used in our AddIns:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;string tempPath = System.IO.Path.GetTempPath();&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way, to get the old behaviour back?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The new directory is not a problem but why must ArcMap dynamically change the %temp% environment variable?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TIA,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fossi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 11:35:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-a-new-temp-path-behaviour-in-arcgis-10-1/m-p/568453#M15314</guid>
      <dc:creator>FossiG_</dc:creator>
      <dc:date>2012-08-21T11:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a new temp path behaviour in ArcGIS 10.1?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-a-new-temp-path-behaviour-in-arcgis-10-1/m-p/568454#M15315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we found the same problem and asked the ESRI Support for help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We've received a response that this issue has been documented in ESRI Inc. now under NIM086862 "Incorrect temporary path is returned through add-in ArcGIS 10.1".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Under &lt;/SPAN&gt;&lt;A href="http://support.esri.com/"&gt;http://support.esri.com/&lt;/A&gt;&lt;SPAN&gt; or &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/home/"&gt;http://resources.arcgis.com/en/home/&lt;/A&gt;&lt;SPAN&gt; we should be able to track the status. Currently, we find there, however, no entry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;geodok_dev&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 07:32:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-a-new-temp-path-behaviour-in-arcgis-10-1/m-p/568454#M15315</guid>
      <dc:creator>Mariannevon_den_Driesch</dc:creator>
      <dc:date>2012-11-30T07:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a new temp path behaviour in ArcGIS 10.1?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-a-new-temp-path-behaviour-in-arcgis-10-1/m-p/568455#M15316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As a workaround you can get the environment variables through a different call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Compare the following outputs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;MessageBox.Show("temppath: " + Path.GetTempPath());
MessageBox.Show(Environment.GetEnvironmentVariable("TEMP",EnvironmentVariableTarget.User));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Change EnvironmentVariableTarget to user, process or machine as required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-a-new-temp-path-behaviour-in-arcgis-10-1/m-p/568455#M15316</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T00:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a new temp path behaviour in ArcGIS 10.1?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-a-new-temp-path-behaviour-in-arcgis-10-1/m-p/568456#M15317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Sean,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the workaround, this solves my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marianne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 09:28:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-a-new-temp-path-behaviour-in-arcgis-10-1/m-p/568456#M15317</guid>
      <dc:creator>Mariannevon_den_Driesch</dc:creator>
      <dc:date>2012-12-05T09:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a new temp path behaviour in ArcGIS 10.1?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-a-new-temp-path-behaviour-in-arcgis-10-1/m-p/568457#M15318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Marianne, Hello Sean,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for bringing this post up again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, the mentioned workaround avoids the problem. +1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BUT: It is very annoying, that any component executed in the context of an ESRI 10.1 Add-In suffers from this behaviour. I am using an external assembly as connector to another application. This assembly also gets this twisted path, when called from an ArcMap 10.1 Add-In. Executed from any other source, the temp path is correct. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this problem goes beyond the Add-In itself and therefore this or any other workaround sadly has to be implemented in every dependent component, too. IMHO this is a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fossi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 12:44:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-a-new-temp-path-behaviour-in-arcgis-10-1/m-p/568457#M15318</guid>
      <dc:creator>FossiG_</dc:creator>
      <dc:date>2012-12-13T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a new temp path behaviour in ArcGIS 10.1?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-a-new-temp-path-behaviour-in-arcgis-10-1/m-p/568458#M15319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is still a bug in 10.3. I found it on the support site and status is still New, so we'll have to keep using the workaround.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.esri.com/bugs/nimbus/TklNMDg2ODYy" title="http://support.esri.com/bugs/nimbus/TklNMDg2ODYy"&gt;NIM086862: Incorrect temporary path is returned through Add-In..&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 09:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-there-a-new-temp-path-behaviour-in-arcgis-10-1/m-p/568458#M15319</guid>
      <dc:creator>JonMorris2</dc:creator>
      <dc:date>2016-07-06T09:41:47Z</dc:date>
    </item>
  </channel>
</rss>

