Is there any way of using iLogic to Copy Design a Vault file into a specific location?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am familiar with the new Vault iLogic snippets and have managed to get this snippet to at least copy the file:
'set new file name according your requirements. Use snippet including auto-numbering if no individual file name applies. Dim mNewFileName As String = "Test" 'replace unique ID by your naming configuration, e.g. sequence of f(x) key parameter values 'returns full file name in local working folder (download enforces override, if local file exists) 'returns "FileNotFound" if file does not exist at indicated location Dim mVaultFile As String = iLogicVault.GetFileCopyBySourceFileNameAndNewName("$/08 - MISCELLANEOUS/08.01 - FIXINGS/08.01.02 - ANCHORS/BASIC ANCHOR.ipt", mNewFileName, True,) 'optionally add the mNumInput variable; note - new file name must not contain an extension! The CheckOut option is True as default; set to False or remove. If mVaultFile Is Nothing Then Logger.Error("File copy not created; validate source file can be found and new file name." ) Else Logger.Info("File " & mVaultFile & " created As copy.") 'add next action using the downloaded file here, e.g. Component.Replace("Part1:1", mVaultFile, True) End If
It puts the new file in the same location as the original.
However if it is possible I would like the new file to be put elsewhere...?
Is it possible?
We're only scoping out ideas for a new workflow so any input would be greatly appreciated 🙂
Link copied