export PDM Documents

Greetings to everybody,

I am wondering if I can start a PackAndGo from Documents coming from PDM.

In other words, I wanna export an assembly with all existing reference documents from PDM to a local folder.

Naive how I am, I allready tryed this:

public ModelDoc2 convertPDMDocToSWDoc(PDMWDocument document)

{

ModelDoc2 swDoc = (ModelDoc2) document;

return ModelDoc2

{

But it doesn't work.

Is there another way to export an assembly with all the reference documents?

Regards

Patrick Reinke

SolidworksApi/macros