Trying to get parts from PDM

I'm am trying to get parts from the vault by using the API.Iconnect OK and I save the top document OK. I then try to getthereferences and loop through them and save them but it doesn'tsaveall files I need, only some of them. Can someone tell mewhatI'm need to do? Below is the loop I'm using to save therefDocs.
Thanks Dan Miel

Set Refs = TopDoc.References
        For Eachrefdoc InRefs
                DocName=refdoc.Name
                SetDoc= Conn.GetSpecificDocument(DocName)
                Doc.Save("C:\SolidWorksWorking\_A")
        NextrefdocSolidworksApi macros