Why IGetEntityName() method returns NULL?

Hello,

The IModelDoc2::IGetEntityName() method returns NULL when I am trying to get name of selected edge/face as shown in text.png

Is there any other API that will give me the above text?

Thanks and Regards,

Mahadev

SolidworksApi/macros