Duct/Pipe Insulation/Lining Not Matching Phase of Associated Duct/Pipe

Tomasz,
I tested adjusting the phase demoed of the pipes and ducts and the insulation did change the phase demoed to match. This is half of the problem. The greater issue is that the phase created of the insulation/lining does not match the phase created of the duct/piping.

image

I am hoping for a dynamo script to acquire the host pipe/duct for the insulation and lining of the duct insulation. Determine the phase created/demolished of the pipe/duct and then apply the same phasing to the insulation/lining.

I have made a little bit of headway with the forum post below but not much because I am not a python guy.