AnsweredAssumed Answered

Use IEdmBatchGet to get one file (one file only)

Question asked by Armando Saksono on Apr 2, 2015
Latest reply on Apr 8, 2015 by Larry Blakely

Hi All,

This code snippet bellow works great. but not exactly what I want. I have another string that  has the exact file path

StringModelIDFilePath. Can I use IEdmBatchGet to get one specific file rather than all file within a folder?


StringModelIDFilePath = "C:\Slides1\Proposals\31000\Park\myFinalItem.SLDASM"

StringModelIDPath = "C:\Slides1\Proposals\31000\Park\"


Dim vault As New EdmVault5

vault.LoginAuto "Slides1", 0

Dim folders(1) As EdmSelItem

folders(0).mlDocID = 0

folders(0).mlProjID = vault.GetFolderFromPath("C:\Slides1" & StringModelIDPath).ID

Dim bg As IEdmBatchGet

Set bg = vault.CreateUtility(EdmUtil_BatchGet)

bg.AddSelection vault, folders()

bg.CreateTree 0, EdmGetCmdFlags.Egcf_SkipExisting

bg.GetFiles 0, Nothing