Copy Vault file on file server and download using full file path, e.g. "$/Designs/Base.ipt".
Create new file name re-using source file's extension and new file name variable.
Preset Options: Download Children (recursively) = Enabled, Enforce Overwrite = True
Create new file name re-using source file's extension and new file name variable.
Preset Options: Download Children (recursively) = Enabled, Enforce Overwrite = True
Namespace: Autodesk.iLogic.Vault
Assembly: Autodesk.iLogic.Vault (in Autodesk.iLogic.Vault.dll) Version: 30.0
Syntax
VB
Public Function GetFileCopyBySourceFileNameAndNewName ( VaultFullFileName As String, NewFileNameNoExt As String, Optional CheckOut As Boolean = true, Optional UpdatePartNumber As Boolean = true ) As String
C#
public string GetFileCopyBySourceFileNameAndNewName( string VaultFullFileName, string NewFileNameNoExt, bool CheckOut = true, bool UpdatePartNumber = true )
Parameters
- VaultFullFileName
- Type: System.String
The full path and file name in Vault virtual folder structure, e.g., "$/Designs/Part1.ipt" - NewFileNameNoExt
- Type: System.String
New name without extension - CheckOut (Optional)
- Type: System.Boolean
Optional. File copy will check-out as default. - UpdatePartNumber (Optional)
- Type: System.Boolean
Optional. Update Part Number property to match new file name
Return Value
Type: StringLocal path/filename