Override centerline ducts

Thank you very much for the effort of this community, I appreciate it really.
I’m working on this issue for some time and in though more forum runs this problem, since some of the standards are predicting that central lines should be gray.

Mostly finds solutions in several ways how to solve the problem but none of them smooth.

I realized that even dynamo cant do the things that normally can do in revit manually.