I want to get the faces of all the features of the part and select the faces that have been marked with colors

hi,I want to get the faces of all the features of the part and select the faces that have been marked with colors,

how  to do ?

SolidworksApi/macros