<?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 Make calls to python add-in tools from c# performing actions within the context of the open mxd in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/make-calls-to-python-add-in-tools-from-c/m-p/86055#M521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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#?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jun 2017 16:34:25 GMT</pubDate>
    <dc:creator>DarrenSmith</dc:creator>
    <dc:date>2017-06-01T16:34:25Z</dc:date>
    <item>
      <title>Make calls to python add-in tools from c# performing actions within the context of the open mxd</title>
      <link>https://community.esri.com/t5/developers-questions/make-calls-to-python-add-in-tools-from-c/m-p/86055#M521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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#?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 16:34:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/make-calls-to-python-add-in-tools-from-c/m-p/86055#M521</guid>
      <dc:creator>DarrenSmith</dc:creator>
      <dc:date>2017-06-01T16:34:25Z</dc:date>
    </item>
  </channel>
</rss>

