Macro to pack and go selected document?

Shown as picture above, I want to write a macro to only pack and go the parts/document I want(by telling the api what name the files are). I need a api, that if you put file names in it, it will remove the document with the name so it won't be packed.

Any ideas?

Many thanks

SolidworksApi macros