Get three first closest points from a face

Hello everybodies , I have  8 points and I want to get the three first closest points from  a face wich is angled with 4 degree from these points. are there a method or macro to do this ? thanks

SolidworksApi macros