<?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 Re: Creating a Python extension for C# in VisualStudio? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/creating-a-python-extension-for-c-in-visualstudio/m-p/257136#M19781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone want to take a shot at this? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2019 19:04:02 GMT</pubDate>
    <dc:creator>BrianWoodman</dc:creator>
    <dc:date>2019-05-14T19:04:02Z</dc:date>
    <item>
      <title>Creating a Python extension for C# in VisualStudio?</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-python-extension-for-c-in-visualstudio/m-p/257135#M19780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm developing an AddIn for ArcGISPro. Previously, in my python addin for ArcGIS 10.6, I use a great method to handle code changes on the fly: I use the regular python addin code (let's call it the 'pythonButtonWrapper') to:&lt;BR /&gt;- import a pythonModule.function code that runs when a particular button is clicked;&lt;BR /&gt;- 'recompile' that pythonModule code on the fly and;&lt;BR /&gt;- handle the button clicks, telling the pythonModule code what button was clicked.&lt;BR /&gt;The pythonModule code then takes over execution. It works great. Because I recompile the pythonModule code on the fly, I can code the functionality into the pythonModule code and never have to touch the pythonButtonWrapper. It never changes (unless of course I add new buttons, etc).&lt;/P&gt;&lt;P&gt;ArcGISPro uses Csharp for its addin code and I can generate a 'CsharpButtonWrapper' for it. &lt;BR /&gt;My question: how can I preserve the same functionality, calling my PYTHON module code functions from the 'CsharpButton Wrapper' that I get with VS 2017, passing in the button clicks? The last thing I want to do is translate all of the python module's code functionality into C#!&lt;/P&gt;&lt;P&gt;Note: I've found lots of on-line example code that calls python.exe from C# but that's NOT what I want to do. I need access to the python module functions themselves. Using IronPython in VS can work but then I don't have access to &lt;STRONG&gt;arcpy&lt;/STRONG&gt; module calls because IronPython is a different runtime.&lt;/P&gt;&lt;P&gt;Thanks in advance for your helpful response,&lt;BR /&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2019 17:55:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-python-extension-for-c-in-visualstudio/m-p/257135#M19780</guid>
      <dc:creator>BrianWoodman</dc:creator>
      <dc:date>2019-01-07T17:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Python extension for C# in VisualStudio?</title>
      <link>https://community.esri.com/t5/python-questions/creating-a-python-extension-for-c-in-visualstudio/m-p/257136#M19781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone want to take a shot at this? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 19:04:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/creating-a-python-extension-for-c-in-visualstudio/m-p/257136#M19781</guid>
      <dc:creator>BrianWoodman</dc:creator>
      <dc:date>2019-05-14T19:04:02Z</dc:date>
    </item>
  </channel>
</rss>

