SWDM travel the assembly component ?

I am using SW document API to get the files pathes of all components, including all of the subassemblies and its parts.

but with below code, just only get top level of the assembly , any buddy can tell me what is the problem ?

thank you very much.

SolidworksApi macros