Select Faces

I am trying to write a macro that:

1. considers all of the surfaces of an assembly one by one and assigns them IDs or names.

2. recognises and selects the surface corresponding to a given ID/ name. I was able to successfuly develop the first part. But I can’t find any example that could help me start with the second part. I would really appreciate your help.

SolidworksApi macros