(API) Can you get a BOM from the SolidWorks Vault?

I could use some help.  I know VBA but I'm new the SolidWorks API.

I need to get a BOM from the SolidWorks Vault.  I've searched and I can find tutorials on how to get a BOM and also how to connect to the vault.

My problem is that all of the examples I can find to get a BOM use the normal Solidworks API and need a file path to open a document. But all of the examples I find that show how to connect to the Vault use the PDM API calls.

I can't seem to find how to look for a document from the Vault, then open it with the SolidWorks API and then create my BOM.

PS: Sorry if this has been answered before, but I can't seem to find what I need.

Is this possible?

Thanks,

gsvendson

SolidworksApi macros