Isolate components with the same appearence

Hello.

We just bought a company which was working with solidworks, I have a huge database to work on and syncronize with ours.

My problem is the following, I need to select and isolate all the components in an assembly with the same appearence.

I now I could create a property with the appearence name in order to filter the assembly, but I have thousands of components, is there any possibility to create a macro that does this job? Or any other way to filter and isolate them in the assembly?

Thanks in advance

SolidworksApi/macros