<?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: Is there an API method to programmatically split Wall or Slab elements? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-an-API-method-to-programmatically-split-Wall-or-Slab/m-p/666039#M10457</link>
    <description>&lt;P&gt;Hi Lo!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also don't think that there's a split command directly available in the API.&lt;BR /&gt;To make a similar command yourself I'd approach it roughly like this:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;A href="https://graphisoft.github.io/archicad-api-devkit/group___user_input.html" target="_blank"&gt;User Input handling&lt;/A&gt;&amp;nbsp;to draw the line&lt;/LI&gt;
&lt;LI&gt;Check for intersections with existing elements (e.g. walls)&lt;/LI&gt;
&lt;LI&gt;Shorten the intersected wall up to the intersection&lt;/LI&gt;
&lt;LI&gt;Create a new wall with the same wall settings and place it on the other side of the intersection&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Hope that helps,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jun 2025 08:42:13 GMT</pubDate>
    <dc:creator>BerndSchwarzenbacher</dc:creator>
    <dc:date>2025-06-17T08:42:13Z</dc:date>
    <item>
      <title>Is there an API method to programmatically split Wall or Slab elements?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-an-API-method-to-programmatically-split-Wall-or-Slab/m-p/665732#M10455</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Hello everyone,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;I'm currently developing an Archicad add-on using the C++ API and need to programmatically split Wall and Slab elements along a specified line or plane, similar to the manual Split operation available in the Archicad UI.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;After reviewing the API documentation, I haven't found a direct function or method that performs this operation.&lt;/SPAN&gt; &lt;SPAN class=""&gt;I'm aware that the API_EditCmdID enumeration includes various edit commands like APIEdit_Drag, APIEdit_Rotate, etc., but none seem to correspond to a split function.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Is there an existing API function or recommended approach to achieve this?&lt;/SPAN&gt; &lt;SPAN class=""&gt;If not, what would be the best practice to emulate the split operation programmatically?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Any guidance or examples would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TranThanhLo_1-1750046651886.png" style="width: 600px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/87942i6876EBAFC811EAE5/image-dimensions/600x397?v=v2" width="600" height="397" role="button" title="TranThanhLo_1-1750046651886.png" alt="TranThanhLo_1-1750046651886.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 12:21:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-an-API-method-to-programmatically-split-Wall-or-Slab/m-p/665732#M10455</guid>
      <dc:creator>Tran Thanh Lo</dc:creator>
      <dc:date>2025-06-16T12:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an API method to programmatically split Wall or Slab elements?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-an-API-method-to-programmatically-split-Wall-or-Slab/m-p/666039#M10457</link>
      <description>&lt;P&gt;Hi Lo!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also don't think that there's a split command directly available in the API.&lt;BR /&gt;To make a similar command yourself I'd approach it roughly like this:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;A href="https://graphisoft.github.io/archicad-api-devkit/group___user_input.html" target="_blank"&gt;User Input handling&lt;/A&gt;&amp;nbsp;to draw the line&lt;/LI&gt;
&lt;LI&gt;Check for intersections with existing elements (e.g. walls)&lt;/LI&gt;
&lt;LI&gt;Shorten the intersected wall up to the intersection&lt;/LI&gt;
&lt;LI&gt;Create a new wall with the same wall settings and place it on the other side of the intersection&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Hope that helps,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 08:42:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Is-there-an-API-method-to-programmatically-split-Wall-or-Slab/m-p/666039#M10457</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2025-06-17T08:42:13Z</dc:date>
    </item>
  </channel>
</rss>

