Get part name when selecting edge

Please tell me how to get the name of the part in the assembly (or component) when choosing its edge?

SolidworksApi/macros