AnsweredAssumed Answered

Arcobject.Net temporary workspace error

Question asked by jalaleomary on Sep 25, 2014
Latest reply on Sep 26, 2014 by jalaleomary

Hi all,


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.


I am specifying the work space as follows:


IMathOp mathOp = new RasterMathOpsClass();

IRasterAnalysisEnvironment mathOpEnvironment = (IRasterAnalysisEnvironment)mathOp;


IWorkspaceFactory workspaceFactory;

IWorkspace workspace;


workspaceFactory = new RasterWorkspaceFactoryClass();

workspace = workspaceFactory.OpenFromFile(@"c:\temp", 0);

mathOpEnvironment.OutWorkspace = workspace;


Thank you