I am trying to create a pipe branch that adjusts the takeoff length based on the pipe it is connecting to. So far I can adjust the takeoff length in the family based on the size the branch/connecting pipe is, but not the pipe it connects to.

For example if I connect a 50mm pipe to a 100mm pipe I want the takeoff to be 125mm, and the same if I was connecting an 80mm pipe to a 100mm pipe, but it changes based on the size of the connecting pipe.

So far I have been modifying the standard generic branch outlet.

Any tips apprecited