Clearance Verification API

I'm looking for an API capable of detecting clearances in an assembly in SolidWorks. Just like the Interference Detection API which gives the information about clashes, its volumes and components involved in each clash, I want something similar which will give me all the clearances (less than the value specified by the user) in an entire assembly.

Does any such code exists? If not, any other way to approach this issue.

Thanks for your time.

Mo

SolidworksApi macros