Hi ZsZs,
there are no direct calls for the pack and go function in SolidWorks, you have to write it on your own. To do this, you have to check for all external referenced, this is usually done with the SldWorks.GetDocumentDependencies2 call.
There are no backpointers ("used in") in the SolidWorks document so to included drawings or others documents like PDF of the the parts and assemblies you have to make an educated guess, which drawings/PDF/TIF etc. belongs to the referenced document. SolidWorks does it the same way and "guesses" that other files with the same basename in the same directory are linked together.
Another remark: you should be familiar with SolidWorks, at least with all those nasty pitfalls which come along with referencing systems. So I presume that you have access to SolidWorks ... and the API helpfile should be available in the menu "Help/SolidWorks API help". If you can't open it or don't see the content (maybe a security restriction if opened from network) you can look in your SolidWorks installation folder in the directory "api", there are all the helpfiles.
Sorry again, but there is no easy solution to use the pack'n'go feature from SolidWorks.
Have a great week,
Stefan
PS: für alle nicht des Englischen mächtigen: der gute ZsZs fragte nach einer Möglichkeit das Pack-And-Go Feature per API zu nutzen; da ich ihn ja nicht auf den bereits vorhanden Thread dazu verweisen konnte hab ich dieselbe Antwort noch mal geschrieben
------------------
Inoffizielle deutsche SolidWorks Hilfeseite http://solidworks.cad.de
Stefans SolidWorks Blog
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP