<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
SetFileNameSerNo Method (IEdmBatchAdd)
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 > IEdmBatchAdd Interface : SetFileNameSerNo Method (IEdmBatchAdd)

Visual Basic
C#
C++/CLI

oSerialNumberName
  File name or the ID of the serial number generator

lFlags
  Must be 0

For internal use only; do not use.

# Syntax

Visual Basic |
--- | ---

    Sub SetFileNameSerNo( _
       ByVal oSerialNumberName As System.Object, _
       Optional ByVal lFlags As System.Integer _
    )

C# |
--- | ---

    void SetFileNameSerNo(
       System.object oSerialNumberName,
       System.int lFlags
    )

C++/CLI |
--- | ---

    void SetFileNameSerNo(
    &   System.Object^ oSerialNumberName,
    &   System.int lFlags
    )

#### Parameters

oSerialNumberName
  File name or the ID of the serial number generator
lFlags
  Must be 0

# Remarks

This method specifies that when a file is batch 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 new files are added to the vault, file data cards are created with serial number names. Use this method to specify that when batch adding a file to the vault (IEdmBatchAdd::Add* methods), the file's data card name is the file name instead of the file's serial number.

If you don't call this method before calling the IEdmBatchAdd::Add* methods, they will create one serial number for the file and another serial number for the file data card. To synchronize the serial numbers:

1. Generate the added file's serial number using IEdmSerNoGen7.
2. Call this method, specifying oSerialNumberName with the added file's serial number generator ID.
3. Repeat steps 1 and 2 for each new file.
4. Call one of the IEdmBatchAdd::Add* methods to add the new files to the batch.
5. Call IEdmBatchAdd::CommitAdd.

Return codes:

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

# See Also

####

IEdmBatchAdd Interface
IEdmBatchAdd Members
IEdmFolder12::SetFileNameSerNo Method ()

# Availability

Version 6.4 of SOLIDWORKS PDM Professional