Hide Table of Contents
AddFiles Method (IEdmFolder6)

Adds one or more files to this folder.


Visual Basic (Declaration) 
Sub AddFiles( _
   ByVal lParentWnd As System.Integer, _
   ByRef ppoFiles As EdmAddFileInfo(), _
   ByVal poCallback As IEdmCallback6 _
void AddFiles( 
   System.int lParentWnd,
   out EdmAddFileInfo[] ppoFiles,
   IEdmCallback6 poCallback
void AddFiles( 
&   System.int lParentWnd,
&   [Out] array<EdmAddFileInfo> ppoFiles,
&   IEdmCallback6^ poCallback


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



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

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


SolidWorks Enterprise PDM Version 6.0

Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

Subject:   Feedback on Help Topics
Page:   AddFiles Method (IEdmFolder6)
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:


We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again

Web Help Content Version: API Help (English only) 2014 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.