Is there an API method to programmatically split Wall or Slab elements?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2025-06-16
06:04 AM
- last edited on
2025-06-16
02:21 PM
by
Laszlo Nagy
Hello everyone,
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.
After reviewing the API documentation, I haven't found a direct function or method that performs this operation. 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.
Is there an existing API function or recommended approach to achieve this? If not, what would be the best practice to emulate the split operation programmatically?
Any guidance or examples would be greatly appreciated.
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2025-06-17 10:42 AM
Hi Lo!
I also don't think that there's a split command directly available in the API.
To make a similar command yourself I'd approach it roughly like this:
- User Input handling to draw the line
- Check for intersections with existing elements (e.g. walls)
- Shorten the intersected wall up to the intersection
- Create a new wall with the same wall settings and place it on the other side of the intersection
Hope that helps,
Bernd