C# how to convert or cast the AssemblyDoc to Component2

C# how to convert or cast the AssemblyDoc to Component2?

TIA!

GAB

​

​

SolidworksApi macros