How to detect mate error?

Suppose I have some parts that are mated with concentricmates, say, with a hole distance of two inches. I change one of theparts so the hole distances is 2.002. The tree lights up with rederrors. I want to run a macro that will find which mates have theerrors. I can traverse the tree and find the parts and the mates.How do I tell which mates has the errors? Do I need to grab themate entities, edit the mate and check for errors or is there acode to check for errors?

Dan MielSolidworksApi macros