SOLIDWORKS PDM Professional API Help Send Feedback
IEdmBatchDelete Interface
See Also  Members   Example
EPDM.Interop.epdm Namespace : IEdmBatchDelete Interface


Allows you to delete several files and folders from the vault at once.


NOTE: Click the Members link, located near the top of the topic, to see this interface's methods and properties.

Syntax

Visual Basic 
Public Interface IEdmBatchDelete 
C# 
public interface IEdmBatchDelete 
C++/CLI 
public interface class IEdmBatchDelete 

Example

Remarks

This interface:

To delete several files and folders from the vault at once:

  1. Access this interface by calling IEdmVault7::CreateUtility, passing EdmUtility.EdmUtil_BatchDelete as a parameter.
  2. Call IEdmBatchDelete::AddFileByID, IEdmBatchDelete::AddFileByPath, or IEdmBatchDelete::AddFolder one or more times to add files and folders to the batch for deletion.
  3. Call IEdmBatchDelete::ComputePermissions to prepare the delete operation.
  4. Optionally call IEdmBatchDelete2::ShowWarningDlg2 to display a message about any errors found in step 3.
  5. Call IEdmBatchDelete::CommitDelete to delete the files and folders added to the batch.
  6. Optionally call IEdmBatchDelete::ShowCommitErrorsDlg or IEdmBatchDelete3::GetCommitErrors to get any errors that might have occurred in step 5.

Using IEdmBatchDelete is more efficient than calling IEdmFolder5::DeleteFile or IEdmFolder5::DeleteFolder multiple times.

Accessors

See Also