<?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: Arcobject.Net temporary workspace error in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcobject-net-temporary-workspace-error/m-p/82606#M2141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jalal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try setting the output workpsace of other environment. May be it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IGeoAnalysisEnvironment::Outworkspace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 14:08:18 GMT</pubDate>
    <dc:creator>ShriramBhutada1</dc:creator>
    <dc:date>2014-09-25T14:08:18Z</dc:date>
    <item>
      <title>Arcobject.Net temporary workspace error</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcobject-net-temporary-workspace-error/m-p/82605#M2140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I am working on c#.Net application using Arcobjects.NET, and I am using the IMathOp, but I am facing a problem in temporary files generated by arcobjects, I specified the workspace for the tool, bu sometimes it generates the temporary files into the application folder not into the workspace folder i specified, is there and solution to guarantee creating temporary files in my work space in order to clean it later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I am specifying the work space as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;IMathOp mathOp = new RasterMathOpsClass();&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;IRasterAnalysisEnvironment mathOpEnvironment = (IRasterAnalysisEnvironment)mathOp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;IWorkspaceFactory workspaceFactory;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;IWorkspace workspace;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;workspaceFactory = new RasterWorkspaceFactoryClass();&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;workspace = workspaceFactory.OpenFromFile(@"c:\temp", 0);&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;mathOpEnvironment.OutWorkspace = workspace;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 13:50:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcobject-net-temporary-workspace-error/m-p/82605#M2140</guid>
      <dc:creator>Jalal_EddinOmari</dc:creator>
      <dc:date>2014-09-25T13:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Arcobject.Net temporary workspace error</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcobject-net-temporary-workspace-error/m-p/82606#M2141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jalal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try setting the output workpsace of other environment. May be it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IGeoAnalysisEnvironment::Outworkspace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 14:08:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcobject-net-temporary-workspace-error/m-p/82606#M2141</guid>
      <dc:creator>ShriramBhutada1</dc:creator>
      <dc:date>2014-09-25T14:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Arcobject.Net temporary workspace error</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcobject-net-temporary-workspace-error/m-p/82607#M2142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jalal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at the documentation. It says rasterAnalysisEnvironment.SetAsNewDefaultEnvironment(); may be this will help as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P style="margin: 0.5em 0px; color: #000000; text-indent: 0px;"&gt;To change the session default analysis environment, create the RasterAnalysis object. Change the settings of the analysis environment to those you want to make the default, then call the&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/d/002400000052000000.htm" rel="/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/d/002400000052000000.htm" style="color: #106790; text-decoration: underline;" target="_blank"&gt;SetAsNewDefaultEnvironment&lt;/A&gt; method. The SetAsNewDefaultEnvironment method will not change the analysis environment associated with any existing operator objects, but each new operator object created will contain the default settings.&lt;/P&gt;&lt;P style="margin: 0.5em 0px; color: #000000; text-indent: 0px;"&gt;You can change environment settings and call the SetAsNewDefaultEnvironment method as many times as you want. To restore the previous set of defaults, call RestoreToPreviousDefaultEnvironment. You can call this method as many times as you have called the SetAsNewDefaultEnvironment method. To reset the global analysis environment to the original defaults, call the Reset method.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/00010000023w000000.htm" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/d/00010000023w000000.htm"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 14:16:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcobject-net-temporary-workspace-error/m-p/82607#M2142</guid>
      <dc:creator>ShriramBhutada1</dc:creator>
      <dc:date>2014-09-25T14:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Arcobject.Net temporary workspace error</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcobject-net-temporary-workspace-error/m-p/82608#M2143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Shriram, unfortunately both solutions didn't works, the SDK is still generating files in exe path sometimes, and i can't figure out the issue, because if i run the same code with same input for 10 times for example, it generated the files for two or three times in exe folder and other times are working correctly and put files into the workspace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 08:40:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcobject-net-temporary-workspace-error/m-p/82608#M2143</guid>
      <dc:creator>Jalal_EddinOmari</dc:creator>
      <dc:date>2014-09-26T08:40:43Z</dc:date>
    </item>
  </channel>
</rss>

