Get top level Parent for an assembly in code

I posted this before, and apparently it was lost somewhere.

How can I enter an assembly, and with the Enterprise PDM API find the top level assembly for it?  

Thanks for any references or help you can provide.

SolidworksApi/macros