Share

iLogicVaultClass.GetFileCopyBySourceFileNameAndAutoNumber Method

Copy Vault file on file server and download using full file path, e.g. "$/Designs/Base.ipt".
Create new file name using default or named numbering scheme.
Preset Options: Download Children (recursively) = Enabled, Enforce Overwrite = True

Namespace:  Autodesk.iLogic.Vault
Assembly:  Autodesk.iLogic.Vault (in Autodesk.iLogic.Vault.dll) Version: 29.0

Syntax

VB

Public Function GetFileCopyBySourceFileNameAndAutoNumber ( 
	VaultFullFileName As String,
	NumberingScheme As String,
	Optional InputParams As String() = Nothing,
	Optional CheckOut As Boolean = true,
	Optional UpdatePartNumber As Boolean = true
) As String

C#

public string GetFileCopyBySourceFileNameAndAutoNumber(
	string VaultFullFileName,
	string NumberingScheme,
	string[] InputParams = null,
	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"
NumberingScheme
Type: System.String
Individual scheme name or "Default"
InputParams (Optional)
Type:  System.String[]
Optional according scheme definition. User input values in order of scheme configuration
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: String
Local path/filename

Remarks

It's possible that your Vault does not have a default numbering scheme set up.
If that's the case, then the string "Default" will not work for the NumberingScheme argument.

To make it work, you must be an Administrator for the vault.
In the Vault Professional client program:
 Launch the Tools > Administration > Vault Settings dialog
 Click the Behaviors tab
 Click the Define Custom Numbering Schemes button

A new dialog will pop up.
There should already be a Sequential entry, but it may not be active and it may not be the default.
 Check the Active and Default boxes for that entry.

See Also

Reference

Was this information helpful?