AnsweredAssumed Answered

Run python script in process via .Net add-in

Question asked by clint.dow on Jul 17, 2014
Latest reply on Sep 21, 2015 by SEria-esristaff

Hello all,


I am creating an interface in WPF that will call python scripts via the System.Diagnostics.Process method.


This is working successfully and my scripts are completing just fine. I'm simply wondering if there is a way to call the arcgis Python instance rather than having to spawn a new one, similar to checking the 'Run Python Script in process' check box in a script's properties within arc. In doing so I hope to speed up the execution time of the script.


I figure there may be a way to retrieve the process ID of the arcgis python instance via arcobjects, but so far have not found any documentation on the topic, can anyone provide some insight?