macro to Create table design to highlight the machine PARTS + list "spare parts"

Good morning to all, today in the office asking me to create some tables that highlight the parts that we recommend as a replacement,
the ideal would be to show the complete assembly in the various views, in which the parts are SPARE with black lines while the rest were with dotted lines, so it would be easy to figure out which part is at the same time "parts" and in which area of ​​the machine is located.

There is a macro that
1) Turn ALL the lines and arcs in dashed lines and gray.
2) Recognize the parts and assemblies that contain the property's "spareparts" = "yes".
3) Transforms the lines and arcs of parts and assemblies "spare parts" in solid line and black.
4) Insert the table material list with only the parts "spares".
There is a macro so beautiful, or ... some good Samaritan wants to explain to me how to do it?

pls dont suggest us 3Dvia..

SolidworksApi macros