Complex element

Hello,

We are trying to create a "complex element" via API.

The data is in X,Y,Z format and we managed to create the horizontal "complex element". We "profiled" the "complex element" as well, but it doesn't show up in 3D, because the "3D lineal element" is not created.

In the "Default" 2D view if I select a "complex element" that is "profiled" manually, there are 2 elements/entities a "complex element" and a "3D linear element", the one we have created has only the "complex element" but has an "active profile".

Can someone, please shed some light where we're wrong?

Any help is very much appreciated.

Thank you in advance.

Regards,

Val.