How do I get the component name of a mesh node

Hi SW-Community

I am new to scripting SW simulations.  I am working on a VBA program that automatically runs thermal simulations and writes the results to an Excel spreadsheet.

The minimum and maximum temperature can be extract with this function:
WResult.GetMinMaxThermal(...)
As output I get the temperature and the mesh node No.

My question is now, how to get the name of the component with the maximum temperature or the name of the component on which the mesh node is located.

Similar to export the list of nodes as .csv with the probe function in the GUI and the last column shows the Component Name.

Many Thanks
Tobias

I work with Solidworks 2019 Premium SP5.0, MS-Office 2016, Windows10

SolidworksApi/macros