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!
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:
Hope that helps,
Bernd