how to select the faces through api in part sketch?

Hi,

  I want to create a sketch in my model using intersection curve command. So i want to select the all faces without X,Y co-ordinates. Is it is possible? If it is possible please give your solution.

Thanks,

A.Mahesh

SolidworksApi macros