Copies a file from a different folder in the vault to this folder.
Syntax
Visual Basic (Declaration) | |
---|
Function CopyFile2( _
ByVal lFileID As System.Integer, _
ByVal lSrcFolderID As System.Integer, _
ByVal lParentWnd As System.Integer, _
ByRef plErrorCode As System.Integer, _
Optional ByVal bsNewName As System.String, _
Optional ByVal lFlags As System.Integer _
) As System.Integer |
Parameters
- lFileID
- ID of the file to copy
- lSrcFolderID
- ID of the folder from which to copy the file
- lParentWnd
- Parent window handle
- plErrorCode
- 0 indicates that the file is copied
- EdmResultSuccessCodes_e.S_EDM_FILES_NOT_UNIQUE_GLOBALLY indicates that the file is copied if you are copying the file to a different folder in the vault; otherwise, the file is not copied
- bsNewName
- Optional new name of the file; "" to use the original file name
- lFlags
- Combination of EdmAddFlag bits
Return Value
ID of the new file
Example
Remarks
See Also
Availability
SOLIDWORKS PDM Professional 2015