PressurePipes and Add Fittings automatically

Hello and greetings to all. I am developing a code in dynamo to create PressurePipes and Add Fittings automatically. However, when the Fittings are placed, they don’t come out in the correct rotation. Does anyone have any idea how to fix this?