Need to Change the Configuration of a Part in an assembly that has multiple instances

I am admittedly not good at writing code to traverse an assembly document and I believe that is what I am struggling with right now.

I need to change the configuration of a part in an assembly that can have anywhere from 2 to 400 instances.

Any idea's?

SolidworksApi macros