Unique portgravity per port

Is there a way to customize the port gravity based on the port type?

From reading the documentation, the only option I see is to override PickNearestPort in the GoToolLinkingNew class. I don’t know how the code is implemented in the base function so I’m hoping someone can give me a hint as to how to do this without ruining the default linking behavior.

Thanks,
sjw

If you want to match types of output and input ports, I think what you’re looking for is GoPort.IsValidLink(toport)