Autodesk Vault ProfessionalVault API

CopyFile Method

Autodesk.Connectivity.WebServicesFilestoreService

This function copies the binary contents of a file in the filestore. The Vault meta data, such as Name and Version Number, are not copied.

Syntax

public System.byte[] CopyFile(
   System.byte[] downloadTicket,
   System.string extension,
   System.bool allowSync,
   PropWriteRequests writeReqs,
   out PropWriteResults writeResults
)
Public Function CopyFile( _
   ByVal downloadTicket() As System.Byte, _
   ByVal extension As System.String, _
   ByVal allowSync As System.Boolean, _
   ByVal writeReqs As PropWriteRequests, _
   ByRef writeResults As PropWriteResults _
) As System.Byte()

Parameters

NameDescription
downloadTicketThe identifier to the file you want to copy. Call DocumentService.GetDownloadTicketsByFileIds to get a download ticket.
extensionThe file extension as shown in the System Property "File Extension", like IPT, IAM, DWG.
allowSyncIn a multi-site environment, this field tells if the file should be synched to the local site. If true and the file is not on the local site, it will be moved to the local site. If false and the file is not on the local site, an error will be thrown.
writeReqsA set of properties to update within the file.
writeResultsThe result of the property updates.

Return Value

Returns byte array of the copied file.

See Also