<xml> </xml>

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

Visual Basic
C#
C++/CLI

lParentFolderID
  ID of parent folder to which to add the folders

bsRelativePath
  Name of folder or relative path of new folder

lArg
  Caller-defined argument

lEdmBatchAddFolderFlags
  Combination of EdmBatchAddFolderFlag bits

poData
  Optional IEdmFolderData5; extra information about the folder to create

lSourceFolderID
  Optional ID of source folder from which to copy properties from

Adds the specified folder or folder path to the batch of folders to be added to the vault.

# Syntax

Visual Basic |
--- | ---

    Sub AddFolder( _
       ByVal lParentFolderID As System.Integer, _
       ByVal bsRelativePath As System.String, _
       ByVal lArg 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 lArg,
       System.int lEdmBatchAddFolderFlags,
       EdmFolderData poData,
       System.int lSourceFolderID
    )

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

    void AddFolder(
    &   System.int lParentFolderID,
    &   System.String^ bsRelativePath,
    &   System.int lArg,
    &   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
lArg
  Caller-defined argument
lEdmBatchAddFolderFlags
  Combination of EdmBatchAddFolderFlag bits
poData
  Optional IEdmFolderData5; extra information about the folder to create
lSourceFolderID
  Optional ID of source folder from which to copy properties from

# Example

See the IEdmBatchAdd examples.

# Remarks

Before calling this method, use IEdmBatchAdd::SetFileNameSerNo to specify how to create the name for the new file's data card.

After calling this method, you must call IEdmBatchAdd::CommitAdd to actually add the file to the vault.

Return codes:

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

# See Also

####

IEdmBatchAdd Interface
IEdmBatchAdd Members

# Availability

Version 6.4 of SOLIDWORKS PDM Professional