So I think this gets me most of the way there (my code here is the C#
equiv)... if I have selected say an edge...
object selected = selmgr.GetSelectedObject6(i, -1);
if((int)swSelectType_e.swSelEDGES == (int)selmgr.GetSelectedObjectType3
(i, -1))
{
Edge edge = selected as Edge;
Entity entity = selected as Entity;
name = ((edge.GetBody() as Body2).Name + " of " +
(entity.GetComponent() as Component2).Name2);
}
alternatively, there is the modeldoc2 function model.GetEntityName
(entity) that seems to return useful results sometimes. I haven't
been able to figure out how to label a vertex.