SOLIDWORKS PDM Professional API Help Send Feedback
AddFolder Method (IEdmBatchAddFolders)
See Also 
EPDM.Interop.epdm Namespace > IEdmBatchAddFolders Interface : AddFolder Method (IEdmBatchAddFolders)


lParentFolderID
ID of parent folder to which to add the folders
bsRelativePath
Name of folder or relative path of new folder
lParam
Caller-defined value
lEdmBatchAddFolderFlags
Combination of EdmBatchAddFolderFlag bits
poData
Optional IEdmFolderData5 permission settings and card layouts are copied to the added folders
lSourceFolderID
Optional ID of folder to copy; if not 0, permission settings and card layouts from the source folder with this lSourceFolderID are copied to the added folders
Adds a folder or a complete folder path to the batch of folders to add to the vault.

Syntax

Visual Basic 
Sub AddFolder( _
   ByVal lParentFolderID As System.Integer, _
   ByVal bsRelativePath As System.String, _
   ByVal lParam As System.Integer, _
   Optional ByVal lEdmBatchAddFolderFlags As System.Integer, _
   Optional ByVal poData As EdmFolderData, _
   Optional ByVal lSourceFolderID As System.Integer _
) 
C# 
void AddFolder( 
   System.int lParentFolderID,
   System.string bsRelativePath,
   System.int lParam,
   System.int lEdmBatchAddFolderFlags,
   EdmFolderData poData,
   System.int lSourceFolderID
)
C++/CLI 
void AddFolder( 
&   System.int lParentFolderID,
&   System.String^ bsRelativePath,
&   System.int lParam,
&   System.int lEdmBatchAddFolderFlags,
&   EdmFolderData^ poData,
&   System.int lSourceFolderID
) 

Parameters

lParentFolderID
ID of parent folder to which to add the folders
bsRelativePath
Name of folder or relative path of new folder
lParam
Caller-defined value
lEdmBatchAddFolderFlags
Combination of EdmBatchAddFolderFlag bits
poData
Optional IEdmFolderData5 permission settings and card layouts are copied to the added folders
lSourceFolderID
Optional ID of folder to copy; if not 0, permission settings and card layouts from the source folder with this lSourceFolderID are copied to the added folders

Example

See the IEdmBatchAddFolders examples.

Remarks

After calling this method, you must call IEdmBatchAddFolders::Create to actually add the folder to the vault.

Return codes:

  • S_OK: The method successfully executed.
  • E_EDM_INVALID_NAME: The folder name contained invalid characters.
 

See Also

Availability

Version 6.3 of SOLIDWORKS PDM Professional