I need to access the component tree of an Edrawings file to know the parent component of the selected component in an Emodelview control. Is this possible?

I have a form with an emodelview control. I open an edrawings document but I do not know how to access the component tree. I need to know the parent component of the selected component.

SolidworksApi/macros