Share

iLogicVaultClass.AddFile Method

Adds local file to Vault and optionally attaches it to a parent file.
Does NOT build parent-child relationships!
So this function should not be used on any file (e.g. an assembly or drawing) that contains references to other files.

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

Syntax

VB

Public Function AddFile ( 
	FullFileName As String,
	VaultFolderPath As String,
	Optional UpdateExisting As Boolean = true,
	Optional ParentFileToAttachTo As String = Nothing
) As Boolean

C#

public bool AddFile(
	string FullFileName,
	string VaultFolderPath,
	bool UpdateExisting = true,
	string ParentFileToAttachTo = null
)

Parameters

FullFileName
Type: System.String
File path and name of file to add in local working folder.
VaultFolderPath
Type: System.String
Full path in Vault, e.g. "$/Designs/P-00000"
UpdateExisting (Optional)
Type: System.Boolean
Creates new file version if existing file is available for check-out.
ParentFileToAttachTo (Optional)
Type: System.String
Creates an attachment to the parent file consuming the newly added file; provide Vault path and file name ("$/...") of parent file to attach to

Return Value

Type: Boolean
Returns True/False on success/failure; returns false if the file exists and UpdateExisting = false.
Returns false if the file added, but could not attach to the parent.

See Also

Reference

Was this information helpful?