SolidWorks VBA - Check Assembly For "Missing Parts"

Can anybody help?

Is it possible, using a SolidWorks VBA macro, to check an assembly (.sldasm) for "Missing Parts" or "Broken Links"?

I have loaded an assembly and it cannot find certain parts.

I need a macro to firstly check the assembly before it runs the rest of a macro that I am writing.

Many thanks in advance!!!

Darren

SolidworksApi/macros