How to exclude components from interference detection

When I manually do an interference detection I have the option to exclude components.  How can I do this in c#?

SolidworksApi macros