<?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: C# extensions in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/C-extensions/m-p/685318#M10721</link>
    <description>&lt;P&gt;No, this isn't possible. It a &lt;EM&gt;platform&lt;/EM&gt; issue rather than &lt;EM&gt;language&lt;/EM&gt; - C# is dependent on the .net platform and can't directly interact with anything that isn't. Otherwise, when running entirely within .net, C# and C++ (and many other languages) can interact relatively easily.&lt;/P&gt;</description>
    <pubDate>Sun, 30 Nov 2025 14:20:59 GMT</pubDate>
    <dc:creator>rwessel</dc:creator>
    <dc:date>2025-11-30T14:20:59Z</dc:date>
    <item>
      <title>C# extensions</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/C-extensions/m-p/684941#M10715</link>
      <description>&lt;P&gt;I've been investigating whether it's possible to essentially create an extension to ArchiCAD that is written in C# by having a C++/CLI bridge from C++ to C#, but I'm a bit stuck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if anyone has tried this before and have any experience they can share?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially, I need C++ to initialize a C# object and then provide it with callbacks to C++ so they can interoperate bidirectionally. This works fine for callbacks that return simple types, but for any complex types, it falls apart and I get a memory access violation when the C# context takes ownership of the C++/CLI initialized object through the return value of the callback function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also been told to ask if there are plans to add support for C# extensions or some sort of native interop with C# in ArchiCAD?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 10:56:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/C-extensions/m-p/684941#M10715</guid>
      <dc:creator>benny_</dc:creator>
      <dc:date>2025-11-26T10:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: C# extensions</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/C-extensions/m-p/685013#M10718</link>
      <description>&lt;P&gt;That sounds like it would be extremely complicated if you did get it to work, and its likely easier to write your addon all in C++.&amp;nbsp; You are not going to be able to access any of the Archicad C++ API functions directly, so you would have to have some kind of bridge for every function as you mentioned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would doubt very much if there would ever be any plans for direct C# support in APIs, given all the main archicad platform is written in C++.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2025 00:59:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/C-extensions/m-p/685013#M10718</guid>
      <dc:creator>scottjm</dc:creator>
      <dc:date>2025-11-27T00:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: C# extensions</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/C-extensions/m-p/685318#M10721</link>
      <description>&lt;P&gt;No, this isn't possible. It a &lt;EM&gt;platform&lt;/EM&gt; issue rather than &lt;EM&gt;language&lt;/EM&gt; - C# is dependent on the .net platform and can't directly interact with anything that isn't. Otherwise, when running entirely within .net, C# and C++ (and many other languages) can interact relatively easily.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Nov 2025 14:20:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/C-extensions/m-p/685318#M10721</guid>
      <dc:creator>rwessel</dc:creator>
      <dc:date>2025-11-30T14:20:59Z</dc:date>
    </item>
  </channel>
</rss>

