As per your macro assembly needs to be open in SoildWorks. The issue is something different. Will be able to share Assembly FM tree snap.
Also you are testing if reference assembly or Part count more than 10 then file name array is single. Try changing same condition.
Thanks for the reply. I'll try your suggestion.
Still getting the same result: The main assembly isn't included. And I couldn't figure out what is going on.
May someone test the macro and report if the main assembly was included in Pack and Go?
*I made some few changes in macro. The new one is attached here: ATC-Pack and Go_v2