AnsweredAssumed Answered

Make calls to python add-in tools from c# performing actions within the context of the open mxd

Question asked by dazzasmith on Jun 1, 2017

I have written a python add-in that performs a series of custom actions including selecting and zooming to features in given layers. I now need to call the same tools from a c# add-in. The only discussion that i've managed to find proposes a solution that envokes a separate instance of python and then runs the python module behind the python add-in. However, this won't work since I need the calls to the python tools to do stuff with the features in the mxd that's open in arcmap, such as select and zoom. So how do I call the tools to execute in the context of the currently open mxd from c#?