Examinig part component mates ?

Hi there,

I have a part that is mated with a line in a 3D-Sketch. The3D-Sketch is in an assembly. The user selects the part on thescreen and my addin recieves the IComponent2 interface of the part.

How do I get the ISketchLine-Interface of the mated line?

My idea was to examine the mates of the Part by examining thefeature tree of the part. Unfortunately the functions that returnsthe feature tree of the component returns everything except theMateGroup of the part.
I use the same functions that were descibed in the SolidWorks APIHelp "Traversing Assembly at Component and Feature Levels Example"

Thanks in advance,

Matthias SenffSolidworksApi macros