Wrong Z coordinate created when using AddByCurve

The base thickness is only a few cm indeed, so it is still off. Your second thought brings me to a problem I have with connecting the pipes & structures as mentioned https://forum.dynamobim.com/t/unable-to-connect-pipes-to-structures/71371

I was wondering if this problem was creating a problem for connecting, but the other way around would maybe be better as U explained?