[Microstation V8i MDL C++ API] Creating complex shape causing my subchildren to connect even though the element is closed.

Hello!

I´m trying to create a complex element consisting of multiple subelements :

  1. Line
  2. Complex chain consisting of N segments
  3. Line
  4. Complex chain consisting of N segments

For that I´m using C++ MDL API.  First I create complex header via mdlComplexChain_createHeader. Then I create my subelements. Lines are created within single mdlLine call, while Complex chains are in loops with multiple mdlLine calls and then appending them to the mother header(The complex chain). After I create them, i append them to the owner with mdlElmdscr_appendDscr() . However, even though my creation is closed element (all lines are connected), microstation keeps adding a line between my two single lines, like the shape wasnt closed or something. Im also attaching a picture describing my problem. The same behavior happens even if i dont add the complex chains...

Thanks for any tips.

Lubo