Get component mates

Is there a way programmatically to get the mates of a component? I know how to get the components of a mate, but not the other way around.SolidworksApi macros