![]() Public Sub GetVaultedFileData(fi As System.IO.FileInfo)ĭim files As List(Of VWS.File) = GetRelatedFilesFromVault(fi)ĭim folders As List(Of VWS.Folder) = GetFileFolders(files)ĭim strPath As String = GetFolderPath(folder) & "\" & file.VerName VaultWorkingFolder - is a constant for my user's root local path for their working folder for me it is "C:\VaultWorkingFolder" GetFolderPath (this turns a vault folder path into a local hd folder path) GetFileFolders (this will get the folder from its Folder ID for each found in vault file) GetRelatedFilesFromVault (uses the search engine to find vault data based on file name without path) I had to add a qualifier to weed out vault search oddities. GetVaultedFileData (I store my acquired file and its vault information in a custom object called VaultedFile) It may not be as elegant as what you are attempting to do, but it works for me. MsgBox("Failed to login to vault.", MsgBoxStyle.Exclamation, "Vault login error")ĭim oConnection As .Connection OLogin = .LogIn("localhost", "Vault", "Administrator", "", .AuthenticationFlags.Standard, Nothing) Here is my code so far, but I can't find the findlatestfilesbypath method on the ACW.DocumentService Object. How do I access the findlatestfilesbypath method? Hi, for the reply, I have a problem implementing the suggestion you made ( I'm new to this and the API looks like a maze to me, compared to the Autodesk Inventor API ) M_conn, parentWindowHandle, "Download files") Public Sub DownloadDialog(fileIter As .FileIteration, _ĭim settings As New .InteractiveAcquireFileSettings( _ Settings.AddFileToAcquire(topLevelAssembly, _ ' download the latest version of the assembly to working folders Public Sub DownloadAssembly(topLevelAssembly As .FileIteration) ![]() AcquisitionOption.Download)ĭim results As = _ Settings.LocalPath = New ("c:\temp")įor Each fileIter As .FileIteration In fileIters ' download individual files to a temp locationĭim settings As New (m_conn) Public Sub DownlodFiles(fileIters As ICollection(Of .FileIteration)) Could someone please show me a sample of the step that I need to make to pass a value to these methods? I think I need to work with the "Download assembly" method. I find loads of acquire samples but never how to select a specific file based on the path. I'm trying to get a specific file based on the path from vault.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |