CosmosWorks Macro help

Hello all,
I am trying to write a macro that gets a tip deflection on a wingstructure with a given loading case. My thought process is that Ineed to obtain the nodes of the face at the tip of the wing andfind the deflection at it. This led me to use the function:CWMesh->GetElementDataFromEntity . In trying to use this, Iinput a dispatch pointer to the entity of the face at the tip (fromthe SW model). The return for this is a NULL pointer.

Main Question:

Is there a difference in the type of entity that I am supposed touse as an input? Is it the SolidWorks entity?SolidworksSimulation