VBA get References from PDM

Hello,

 

I'm trying to write a vba macro to get a drawing file and all of it's children files from pdm Vault. I can successfully get the drawing file, but have not been able to get any of the model files associated with it to get, so the drawings come in empty. I have been trying to use getReferenceTree, then iterate through the references using getFirstChildPosition and then getNextChild, but have not been able to get them to work. Does anyone have any snippets or anything i can reference?

 

Thank you all very much,

 

Ben