replacement of component

At replacement of one component by another in assembly it will be necessary to know what configurations of this component in all configurations of assembly. How to learn in SolidWorks 2008 API?

SolidworksApi macros