<?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: How to call an ArcGIS Pro SDK (C#) Add-in project from Python ? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/768509#M522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;Currently there's no way to&amp;nbsp;call an ArcGIS Pro SDK Add-In from a python script.&lt;/P&gt;&lt;P&gt;So, I implemented a workaround: I created a Console Application, which will be called from a python script, like an entry-point.&lt;/P&gt;&lt;P&gt;Note: This workaround only works if you're working with "ArcGIS.Core" and "&lt;SPAN&gt;ArcGIS.Corehost" assemblies, it crashes for all the other assemblies (ArcGIS.Desktop.*)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Aug 2019 12:02:11 GMT</pubDate>
    <dc:creator>FabianOrtega</dc:creator>
    <dc:date>2019-08-29T12:02:11Z</dc:date>
    <item>
      <title>How to call an ArcGIS Pro SDK (C#) Add-in project from Python ?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/768505#M518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ! I created&amp;nbsp;an Add-in project using the ArcGIS Pro SDK for .NET (C#) and now I'm&amp;nbsp;trying to&amp;nbsp;call the Add-in&amp;nbsp;methods from my Python scripts using&amp;nbsp;ArcPy but I didn't find neither documentation nor examples how to achieve this, I've tried some things&amp;nbsp;however it didn't work and now&amp;nbsp;I'm stuck... So I'&lt;SPAN style="background-color: #ffffff;"&gt;m wondering if&amp;nbsp;someone knows or has any ideas how to do this ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 16:09:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/768505#M518</guid>
      <dc:creator>FabianOrtega</dc:creator>
      <dc:date>2018-09-07T16:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to call an ArcGIS Pro SDK (C#) Add-in project from Python ?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/768506#M519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What type of functionality is in your C# code that you would like to call from Python?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A more typical code pattern would be to have C# code call Python using the Geoprocessing API as demonstrated in this sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Geoprocessing/CallScriptFromNet" title="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Geoprocessing/CallScriptFromNet"&gt;Github Esri/arcgis-pro-sdk-community-samples: CallScriptFromNet&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 18:22:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/768506#M519</guid>
      <dc:creator>CharlieGorman</dc:creator>
      <dc:date>2018-09-07T18:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to call an ArcGIS Pro SDK (C#) Add-in project from Python ?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/768507#M520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Hi Charlie!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Actually all our production line is based on ArcPy scripts, however we’re using ArcGIS Pro SDK for .Net (C#) for one specific functionality that can’t be done with ArcPy: export the annotations baselines (the polylines not the bounding box polygons) into a new Feature Class, that’s why we need to call C# code from Python.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;So the functionalities that have been implemented in C# are:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Retrieve the annotations baselines&amp;nbsp;and the attributs from a given Annotation Layer&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Create a new Feature Class&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Insert the annotations baselines and the attributs into the new Feature Class&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Would you have any idea how we could accomplish this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Thank you for your attention to this matter.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Best regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2018 12:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/768507#M520</guid>
      <dc:creator>FabianOrtega</dc:creator>
      <dc:date>2018-09-09T12:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to call an ArcGIS Pro SDK (C#) Add-in project from Python ?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/768508#M521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever find out if there's a way to call an ArcGIS Pro SDK Add-in from a python script? &lt;A href="https://community.esri.com/migrated-users/259438"&gt;Charlie Gorman&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2019 20:13:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/768508#M521</guid>
      <dc:creator>MarvisKisakye1</dc:creator>
      <dc:date>2019-08-26T20:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to call an ArcGIS Pro SDK (C#) Add-in project from Python ?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/768509#M522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;Currently there's no way to&amp;nbsp;call an ArcGIS Pro SDK Add-In from a python script.&lt;/P&gt;&lt;P&gt;So, I implemented a workaround: I created a Console Application, which will be called from a python script, like an entry-point.&lt;/P&gt;&lt;P&gt;Note: This workaround only works if you're working with "ArcGIS.Core" and "&lt;SPAN&gt;ArcGIS.Corehost" assemblies, it crashes for all the other assemblies (ArcGIS.Desktop.*)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2019 12:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/768509#M522</guid>
      <dc:creator>FabianOrtega</dc:creator>
      <dc:date>2019-08-29T12:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to call an ArcGIS Pro SDK (C#) Add-in project from Python ?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/1111227#M7274</link>
      <description>&lt;P&gt;Could the Python.NET module (pythonnet) be of any help?&amp;nbsp; (Old post, I know, but thought I'd mention it.)&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 13:13:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/1111227#M7274</guid>
      <dc:creator>ThomasCrossman</dc:creator>
      <dc:date>2021-10-26T13:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to call an ArcGIS Pro SDK (C#) Add-in project from Python ?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/1172692#M8120</link>
      <description>&lt;P&gt;We are now struggling with the same question and we would solve it the same way, as you did, Fabian.&lt;/P&gt;&lt;P&gt;I expected at least to be able to create a C#/.net-GP Tool to call it from python. I cannot understand, why this isn't supported in the Pro SDK.&lt;BR /&gt;Also nice would be to enable ArcGIS Pro command search and execution from python script.&lt;/P&gt;&lt;P&gt;It really does not make sense to call Python Script from C#/.net Code. Scripts are used to automate things, C#/.net to implement functions.&lt;/P&gt;&lt;P&gt;I picked this up to hopefully draw other customers and esri's attention to it.&lt;/P&gt;&lt;P&gt;Thanks for this post, Fabian and kind regards&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 08:12:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-call-an-arcgis-pro-sdk-c-add-in-project/m-p/1172692#M8120</guid>
      <dc:creator>MarianneRohrbach</dc:creator>
      <dc:date>2022-05-11T08:12:28Z</dc:date>
    </item>
  </channel>
</rss>

