Rebar in Tekla doesn't follow control polylines from GH

I’m observing inconsistent behavior between Grasshopper and Tekla during reinforcement creation, and I would appreciate an explanation and a possible fix.

I’m creating several tapered Tekla rebar groups with non-planar shapes using a single Grasshopper component. I expect that “surface” through rebars centers goes through control points of rebar group. And it’s how it works for most of the groups, but some are significantly offset in random direction from group control points I provided, even though all rebar offsets are set to 0.
I tried changing parameters of rebar group, offsets, size, spacing, and just translating the guide curves, but the group still stays in the wrong position. However for some groups if I unflip the direction of the guide curves and then plug it back, all rebar groups change the placing to correct one. Please see .gh file attached.

So exactly the same input at the beginning and after few input lines modifications produce different geometry in Tekla.

I have a lot of rebars in Tekla model, so I need to be confident that all of them are created as expected and that their geometry does not change without my knowledge later.

Second part of the problem - I can’t make Tekla place rebars correctly using unflipped curves as well as for some other similar curves not present in this example file. What condition should I satisfy so that bars follow control points for any reasonable polyline?

Input lines are polylines with the same amount of control points, quite evenly spaced. There is no problem if each bar has up to 4 control points, but that level of detail is not enough for my needs. Same problem persists if the component creates only one group.

Rhino 8, Tekla 2023, Live-link 2023.1.15

In figures:

  1. Bars after creation - closer group is fine, further is flying by about 100 mm.
  2. Groups are as intended after double modification - center line of all bars is on the surface (except the first bar).

Inconsistent_GH_rebar.gh (45.1 KB)