Select plane from selected part in assembly

Hi,

I want to create a macro to select X plane from a selected parts in an assembly. can anybody help me? Still new in programming skill.

Thank you.

SolidworksApi macros