Useing "Select Connected Faces" and "Invert Selection" by api

Hi :-)

How can i use "Select Connected Faces" and "Invert Selection" by api Functions ?

2014 SolidWorks Help - Using Select Connected Faces

2014 SolidWorks Help - Invert Selection

SolidworksApi macros