Get Connector Vector

Is there anyway get a connectors vector? The closest I came was a post that got the connectors owner and the location.curve and work from there, but I need something that works for things like fittings and pipe accessories as well.

connector.Angle will only provide an angle for familyinstances and will not work for pipe. I also don’t know what value this is actually returning.

Basically I just need to make sure I get connectors that are facing opposite directions.

I think this has solved it for me.