<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
AddFiles Method (IEdmFolder6)
See Also Example

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 > IEdmFolder6 Interface : AddFiles Method (IEdmFolder6)

Visual Basic
C#
C++/CLI

lParentWnd
  Parent window handle

ppoFiles
  Array of EdmAddFileInfo structures; one structure for each added file

poCallback
  Optional pointer to a class that implements IEdmCallback6 to control this add operation and obtain progress information about it

Adds one or more files to this folder.

# Syntax

Visual Basic |
--- | ---

    Sub AddFiles( _
       ByVal lParentWnd As System.Integer, _
       ByRef ppoFiles() As EdmAddFileInfo, _
       ByVal poCallback As IEdmCallback6 _
    )

C# |
--- | ---

    void AddFiles(
       System.int lParentWnd,
       out EdmAddFileInfo[] ppoFiles,
       IEdmCallback6 poCallback
    )

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

    void AddFiles(
    &   System.int lParentWnd,
    &   [Out] array<EdmAddFileInfo>^ ppoFiles,
    &   IEdmCallback6^ poCallback
    )

#### Parameters

lParentWnd
  Parent window handle
ppoFiles
  Array of EdmAddFileInfo structures; one structure for each added file
poCallback
  Optional pointer to a class that implements IEdmCallback6 to control this add operation and obtain progress information about it

# Example

Add Files to Vault (VB.NET)
Add Files to Vault (C#)

# Remarks

This method is more efficient than IEdmFolder5::AddFile when adding many files.

Before calling this method, call IFolder12::SetFileNameSerNo for each new file to specify how to create the name of the new file's data card.

Return codes:

- S_OK: The method successfully executed.
- E_EDM_END_OF_SN_FILE: The operation needs to generate serial numbers from a file but the end of the file has been reached.
- E_EDM_SN_FILE_NOT_FOUND: The operation needs to generate serial numbers from a file that cannot be found.
- E_EDM_CANCELLED_BY_USER: The operation was cancelled via the optional callback interface.

# See Also

####

IEdmFolder6 Interface
IEdmFolder6 Members

# Availability

SOLIDWORKS PDM Professional Version 6.0