| Visual Basic | |
|---|---|
Sub SetFileNameSerNo( _ ByVal oSerialNumberName As System.Object _ ) | |
| C# | |
|---|---|
void SetFileNameSerNo( System.object oSerialNumberName ) | |
| C++/CLI | |
|---|---|
void SetFileNameSerNo( & System.Object^ oSerialNumberName ) | |
Parameters
- oSerialNumberName
- File name without extension or path
- or -
- ID of the file's serial number generator
This method specifies that when a file is added to the vault, its data card is created with a name that is either the added file's serial number or its name.
By default when files are added to the vault, file data cards are created with serial number names. To direct that an added file's data card be created with a file name instead of a serial number name, call this method specifying oSerialNumberName with a file name before calling IEdmFolder8::AddFile2 or IEdmFolder6::AddFiles.
If you don't call this method before calling IEdmFolder8::AddFile2 or IEdmFolder6::AddFiles, the added file and its data card are created with different serial number names. To synchronize the serial number names:
- Use IEdmSerNoGen7 to generate/get the added file's serial number.
- Call this method, specifying oSerialNumberName with the added file's serial number generator ID.
- Repeat steps 1 and 2 for each added file.
- Call IEdmFolder8::AddFile2 or IEdmFolder6::AddFiles to add the new file(s) to the vault.
- S_OK: The method successfully executed.
- S_FALSE: One of the arguments is invalid.
SOLIDWORKS PDM Professional 2019