<?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 MultipleRingBuffer_analysis in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/multipleringbuffer-analysis/m-p/237965#M1490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please help me with&amp;nbsp;MultipleRingBuffer_analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My applications needs to call arcpy python script that call&amp;nbsp;MultipleRingBuffer_analysis from C# code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling this python script file from C# code like this&lt;/P&gt;&lt;P&gt;using System;&lt;BR /&gt;using System.Collections.Generic;&lt;BR /&gt;using System.Linq;&lt;BR /&gt;using System.Text;&lt;BR /&gt;using System.Threading.Tasks;&lt;/P&gt;&lt;P&gt;namespace ConsoleApplication1&lt;BR /&gt;{&lt;BR /&gt; using System.Diagnostics;&lt;/P&gt;&lt;P&gt;class Program&lt;BR /&gt; {&lt;BR /&gt; static void Main(string[] args)&lt;BR /&gt; {&lt;BR /&gt; string refresult = string.Empty;&lt;BR /&gt; string tmpfileName1 = "C:\\inetpub\\wwwroot\\PyScript\\MultiEvent.py 20:30:40 FLOOD_JKT_2013BUFF p123245";&lt;BR /&gt; int ExitCode = -1;&lt;BR /&gt; Random rn = new Random();&lt;BR /&gt; int Order = rn.Next(10000000, 99999999);&lt;BR /&gt; string message = string.Empty;&lt;BR /&gt; message = "";&lt;BR /&gt; message += "Running run_cmdforAllA \n";&lt;BR /&gt; string strmsg = string.Empty;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;BR /&gt; message += "create a process object \n";&lt;BR /&gt; Process p = new Process();&lt;BR /&gt; message += " after creating process object \n";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; string fileName1 = tmpfileName1;&lt;BR /&gt; message += "Process info \n";&lt;BR /&gt; //logfile.WriteLine(@"ProcessStartInfo is :C:\Python27\ArcGIS10.6\python.exe and " );&lt;BR /&gt; //logfile.Flush();&lt;BR /&gt; p.StartInfo = new ProcessStartInfo(@"C:\Python27\ArcGIS10.7\python.exe", fileName1)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;RedirectStandardOutput = true,&lt;BR /&gt; UseShellExecute = false,&lt;BR /&gt; CreateNoWindow = true,&lt;BR /&gt; RedirectStandardError = true&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; message += "process before start \n";&lt;BR /&gt; p.Start();&lt;BR /&gt; message += "process after start \n";&lt;BR /&gt; p.StartInfo.Verb = "runas";&lt;BR /&gt; // message += "process before WaitForExit \n";&lt;/P&gt;&lt;P&gt;p.WaitForExit();&lt;BR /&gt; ExitCode = p.ExitCode;&lt;BR /&gt; message += "process after WaitForExit \n";&lt;BR /&gt; &lt;BR /&gt; p.WaitForExit();&lt;/P&gt;&lt;P&gt;//Check to see if the process is still running.&lt;BR /&gt; if (p.HasExited == false)&lt;BR /&gt; {&lt;BR /&gt; message += "Enter if part \n";&lt;BR /&gt; message += "Process is still running \n";&lt;BR /&gt; //Process is still running.&lt;BR /&gt; //Test to see if the process is hung up.&lt;BR /&gt; if (p.Responding)&lt;BR /&gt; {&lt;BR /&gt; message += "Process was not responding; close the main window. \n";&lt;BR /&gt; //Process was responding; close the main window.&lt;BR /&gt; p.CloseMainWindow();&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;//Process was not responding; force the process to close.&lt;BR /&gt; message += "Process was not responding; force the process to close. \n";&lt;BR /&gt; //Process was not responding; force the process to close.&lt;BR /&gt; p.Kill();&lt;BR /&gt; message += "After killing the process \n";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;message += "before standard output. \n";&lt;BR /&gt; string output = p.StandardOutput.ReadToEnd();&lt;BR /&gt; &lt;BR /&gt; message += " standard output ==&amp;gt; " + output + " \n";&lt;BR /&gt; message += "after standard output. \n";&lt;/P&gt;&lt;P&gt;message += "Standard Error ====&amp;gt; " + p.StandardError.ReadToEnd() + "\n";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; strmsg = output;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; //static void OpenMicrosoftWord(string file)&lt;BR /&gt; //{&lt;BR /&gt; // ProcessStartInfo startInfo = new ProcessStartInfo();&lt;BR /&gt; // startInfo.FileName = "python";&lt;BR /&gt; // startInfo.Arguments = "C:\\inetpub\\wwwroot\\PyScript\\MultiEvent.py 20:30:40 FLOOD_JKT_2013BUFF p123245";&lt;BR /&gt; // Process.Start(startInfo);&lt;BR /&gt; // Process.Wai&lt;/P&gt;&lt;P&gt;//}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This code works properly when buffer size is single digit 1:2:3 but when I increase to double digit then 10:20:30 it fails with following error.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 999999: Error executing function.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;An error occurred during the buffer operation&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Failed to execute (Buffer).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Failed to execute (MultipleRingBuffer).&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2020 12:00:24 GMT</pubDate>
    <dc:creator>AzgharHussain</dc:creator>
    <dc:date>2020-03-31T12:00:24Z</dc:date>
    <item>
      <title>MultipleRingBuffer_analysis</title>
      <link>https://community.esri.com/t5/developers-questions/multipleringbuffer-analysis/m-p/237965#M1490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please help me with&amp;nbsp;MultipleRingBuffer_analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My applications needs to call arcpy python script that call&amp;nbsp;MultipleRingBuffer_analysis from C# code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling this python script file from C# code like this&lt;/P&gt;&lt;P&gt;using System;&lt;BR /&gt;using System.Collections.Generic;&lt;BR /&gt;using System.Linq;&lt;BR /&gt;using System.Text;&lt;BR /&gt;using System.Threading.Tasks;&lt;/P&gt;&lt;P&gt;namespace ConsoleApplication1&lt;BR /&gt;{&lt;BR /&gt; using System.Diagnostics;&lt;/P&gt;&lt;P&gt;class Program&lt;BR /&gt; {&lt;BR /&gt; static void Main(string[] args)&lt;BR /&gt; {&lt;BR /&gt; string refresult = string.Empty;&lt;BR /&gt; string tmpfileName1 = "C:\\inetpub\\wwwroot\\PyScript\\MultiEvent.py 20:30:40 FLOOD_JKT_2013BUFF p123245";&lt;BR /&gt; int ExitCode = -1;&lt;BR /&gt; Random rn = new Random();&lt;BR /&gt; int Order = rn.Next(10000000, 99999999);&lt;BR /&gt; string message = string.Empty;&lt;BR /&gt; message = "";&lt;BR /&gt; message += "Running run_cmdforAllA \n";&lt;BR /&gt; string strmsg = string.Empty;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;BR /&gt; message += "create a process object \n";&lt;BR /&gt; Process p = new Process();&lt;BR /&gt; message += " after creating process object \n";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; string fileName1 = tmpfileName1;&lt;BR /&gt; message += "Process info \n";&lt;BR /&gt; //logfile.WriteLine(@"ProcessStartInfo is :C:\Python27\ArcGIS10.6\python.exe and " );&lt;BR /&gt; //logfile.Flush();&lt;BR /&gt; p.StartInfo = new ProcessStartInfo(@"C:\Python27\ArcGIS10.7\python.exe", fileName1)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;RedirectStandardOutput = true,&lt;BR /&gt; UseShellExecute = false,&lt;BR /&gt; CreateNoWindow = true,&lt;BR /&gt; RedirectStandardError = true&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; message += "process before start \n";&lt;BR /&gt; p.Start();&lt;BR /&gt; message += "process after start \n";&lt;BR /&gt; p.StartInfo.Verb = "runas";&lt;BR /&gt; // message += "process before WaitForExit \n";&lt;/P&gt;&lt;P&gt;p.WaitForExit();&lt;BR /&gt; ExitCode = p.ExitCode;&lt;BR /&gt; message += "process after WaitForExit \n";&lt;BR /&gt; &lt;BR /&gt; p.WaitForExit();&lt;/P&gt;&lt;P&gt;//Check to see if the process is still running.&lt;BR /&gt; if (p.HasExited == false)&lt;BR /&gt; {&lt;BR /&gt; message += "Enter if part \n";&lt;BR /&gt; message += "Process is still running \n";&lt;BR /&gt; //Process is still running.&lt;BR /&gt; //Test to see if the process is hung up.&lt;BR /&gt; if (p.Responding)&lt;BR /&gt; {&lt;BR /&gt; message += "Process was not responding; close the main window. \n";&lt;BR /&gt; //Process was responding; close the main window.&lt;BR /&gt; p.CloseMainWindow();&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;//Process was not responding; force the process to close.&lt;BR /&gt; message += "Process was not responding; force the process to close. \n";&lt;BR /&gt; //Process was not responding; force the process to close.&lt;BR /&gt; p.Kill();&lt;BR /&gt; message += "After killing the process \n";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;message += "before standard output. \n";&lt;BR /&gt; string output = p.StandardOutput.ReadToEnd();&lt;BR /&gt; &lt;BR /&gt; message += " standard output ==&amp;gt; " + output + " \n";&lt;BR /&gt; message += "after standard output. \n";&lt;/P&gt;&lt;P&gt;message += "Standard Error ====&amp;gt; " + p.StandardError.ReadToEnd() + "\n";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; strmsg = output;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; //static void OpenMicrosoftWord(string file)&lt;BR /&gt; //{&lt;BR /&gt; // ProcessStartInfo startInfo = new ProcessStartInfo();&lt;BR /&gt; // startInfo.FileName = "python";&lt;BR /&gt; // startInfo.Arguments = "C:\\inetpub\\wwwroot\\PyScript\\MultiEvent.py 20:30:40 FLOOD_JKT_2013BUFF p123245";&lt;BR /&gt; // Process.Start(startInfo);&lt;BR /&gt; // Process.Wai&lt;/P&gt;&lt;P&gt;//}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This code works properly when buffer size is single digit 1:2:3 but when I increase to double digit then 10:20:30 it fails with following error.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR 999999: Error executing function.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;An error occurred during the buffer operation&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Failed to execute (Buffer).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Failed to execute (MultipleRingBuffer).&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2020 12:00:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/multipleringbuffer-analysis/m-p/237965#M1490</guid>
      <dc:creator>AzgharHussain</dc:creator>
      <dc:date>2020-03-31T12:00:24Z</dc:date>
    </item>
  </channel>
</rss>

