How to open a drawing from SolidWorks PDM with VBA?

I have a macro that prints all drawings from assembly components if they have one. Sometimes it doesn't find a drawing from a local workstation even if I know that there should be one. So my idea is to load drawings from vault and then process these. But don't have experience from SolidWorks PDM. Can anybody show me a way? I have a drawing name and a location but how to connect vault and get a file to a local station from there?

SolidworksApi macros