Download EPDM file to local folder using API

Hi all,

I would like to download EPDM file to local folder using API.

When I use this API call for downloading an sldasm file from EPDM, it fails with "folder not found" error. What is the correct way to do this? I don't want all the components but just the sldasm file only.

vaultFile.GetFileCopy(0, 0, 0, EdmGetFlag.EdmGet_Refs, "c:\temp")

SolidworksApi macros