api help in adding selection to mate selections

Hello,

I need a little help with the following please.

I have a macro that select planes for mating without using the tree, If i use this macro to select a plane of part#1 then a plane on part#2 and click mate, I get the results I want. In the mate selection box that opens I have the two planes selected and ready to mate. If I have the mate dialog open and use this macro it doesn't add the selection to the mate selects even though they are highlighted and appear to be selected. Can anyone help me with a macro to add a selection to the Mate Selections Dialog.

thanks

jim

SolidworksApi macros