Adds a file to this folder.
Syntax
Visual Basic (Declaration) | |
---|
Function AddFile2( _
ByVal lParentWnd As System.Integer, _
ByVal bsSrcPath As System.String, _
ByRef plErrorCode As System.Integer, _
Optional ByVal bsNewFileName As System.String, _
Optional ByVal lEdmAddFlags As System.Integer _
) As System.Integer |
Parameters
- lParentWnd
Parent window handle
- bsSrcPath
- Path of file to copy; "" to create an empty file with the name specified by bsNewFileName (see Remarks)
- plErrorCode
If bsSrcPath is... |
Then plErrorCode is... |
Uniquely named
- or -
Not uniquely named and the Allow duplicate file names in this file vault option is selected for the vault |
0, and the file is added to the vault |
Not uniquely named and one of the following options is selected for the vault:
- Do not allow duplicate file names in this file vault
- or -
- Do not allow duplicate file names of files with these extensions
|
EdmResultSuccessCodes_e.S_EDM_FILES_NOT_UNIQUE_GLOBALLY, and the file is added to the vault if you are adding the file to a different folder in the vault; otherwise, the file is not added the vault |
- bsNewFileName
- Optional new file name; "" to use the file name specified in bsSrcPath (see Remarks)
- lEdmAddFlags
- Combination of EdmAddFlag bits
Return Value
ID of the new file
Example
Remarks
See Also
Availability
SOLIDWORKS Enterprise PDM 2015