Ok, I try to extract the name of the surface selected for the mates. I have found how to extract manually the name of the surface selected but I try to extract that by Solidworks API.
Those are temp names and shouldn't be used for the tracking purpose. You can use 2017 SOLIDWORKS API Help - Persistent Reference IDs or 2012 SOLIDWORKS API Help - ModelName Property (IEntity) if you want to get persist pointers.
Retrieving data ...