<?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: Using ArcObjects for ArcMap 10.8 in Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-arcobjects-for-arcmap-10-8-in-python/m-p/1559066#M73195</link>
    <description>&lt;P&gt;I have same problem with 10.8, is there any solution ?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 06:26:40 GMT</pubDate>
    <dc:creator>pyfans</dc:creator>
    <dc:date>2024-11-15T06:26:40Z</dc:date>
    <item>
      <title>Using ArcObjects for ArcMap 10.8 in Python</title>
      <link>https://community.esri.com/t5/python-questions/using-arcobjects-for-arcmap-10-8-in-python/m-p/1252225#M66685</link>
      <description>&lt;P&gt;I have been trying to use code to call ArcObjects for ArcMap 10.8 from within Python based on various code examples on the web and so far all of them aren't working.&amp;nbsp; So, is it possible to use ArcObjects for ArcMap 10.8 within Python, or does that only work for earlier versions of ArcMap?&lt;/P&gt;&lt;P&gt;I have tried installing comtypes and using the first example from this website:&amp;nbsp;&lt;A href="https://gist.github.com/AlexArcPy/bf0f1702d6b0d3840f43442a2d5ef5c6" target="_blank" rel="noopener"&gt;https://gist.github.com/AlexArcPy/bf0f1702d6b0d3840f43442a2d5ef5c6&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, although I have changed the path to match my version of ArcMap, the code fails on the line 12 with a "WindowsError: [Error -2147024809] The parameter is incorrect" error when it tries to execute:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;esriFramework&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;GetModule&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;r"C:\Program Files (x86)\ArcGIS\Desktop10.8\com\esriFramework.olb"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried using the &lt;SPAN&gt;library on NuGet called UnmanagedExports from Robert Giesecke&lt;/SPAN&gt; from&amp;nbsp;&lt;A href="https://www.udcus.com/blog/2017/06/27/extending-arcpy-increased-capabilities-arcobjects-and-c" target="_blank" rel="noopener"&gt;https://www.udcus.com/blog/2017/06/27/extending-arcpy-increased-capabilities-arcobjects-and-c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However that code fails when I try to run the Python Example Call Function saying that the dll I built does not have a function called&amp;nbsp;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;CustomPost&lt;/SPAN&gt;&lt;SPAN class=""&gt;" and doesn't even try to execute anything from the dll.&amp;nbsp; I had made sure &lt;SPAN&gt;the x86 build type is selected in the Target Platform of my project properties.&amp;nbsp; I read elsewhere that the UnmanagedExports library is not compatible with Visual Studio 2017, which is the minimum version required by the ArcMap 10.8 SDK.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;So, is it no longer possible to call ArcObjects for ArcMap 10.8 from within Python?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 02:36:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcobjects-for-arcmap-10-8-in-python/m-p/1252225#M66685</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2023-01-27T02:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcObjects for ArcMap 10.8 in Python</title>
      <link>https://community.esri.com/t5/python-questions/using-arcobjects-for-arcmap-10-8-in-python/m-p/1559066#M73195</link>
      <description>&lt;P&gt;I have same problem with 10.8, is there any solution ?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 06:26:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcobjects-for-arcmap-10-8-in-python/m-p/1559066#M73195</guid>
      <dc:creator>pyfans</dc:creator>
      <dc:date>2024-11-15T06:26:40Z</dc:date>
    </item>
  </channel>
</rss>

