<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
SetFileNameSerNo Method (IEdmFolder12)
See Also

Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C# Language Filter: C++/CLI

EPDM.Interop.epdm Namespace > IEdmFolder12 Interface : SetFileNameSerNo Method (IEdmFolder12)

Visual Basic
C#
C++/CLI

oSerialNumberName
  - File name without extension or path

  - or -

  - ID of the file's serial number generator

For internal use only; do not use.

# Syntax

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

# Remarks

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:

1. Use IEdmSerNoGen7 to generate/get the added file's serial number.
2. Call this method, specifying oSerialNumberName with the added file's serial number generator ID.
3. Repeat steps 1 and 2 for each added file.
4. Call IEdmFolder8::AddFile2 or IEdmFolder6::AddFiles to add the new file(s) to the vault.

Return codes:

- S_OK: The method successfully executed.
- S_FALSE: One of the arguments is invalid.

# See Also

####

IEdmFolder12 Interface
IEdmFolder12 Members
IEdmBatchAdd::SetFileNameSerNo Method ()

# Availability

SOLIDWORKS PDM Professional 2019