AFAIK, you use the ACAPI_Element_Create function.
Take a look at the section of the documentation called "Element Overview".
(Of course, to be like Roofmaker, you understand that you need to set things up so that your add-on receives notifications about the elements that you are associating your objects with.)
One of the forum moderators
AC 26 USA and earlier • macOS Ventura 13.4, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB